{"acl_categories":["@read","@set","@fast"],"arguments":[{"display_text":"key","key_spec_index":0,"name":"key","type":"key"}],"arity":2,"categories":["docs","develop","stack","oss","rs","rc","oss","kubernetes","clients"],"command_flags":["readonly","fast"],"complexity":"O(1)","description":"Returns the number of members in a set.","duplicateOf":"head:data-ai-metadata","group":"set","key_specs":[{"RO":true,"begin_search":{"spec":{"index":1},"type":"index"},"find_keys":{"spec":{"keystep":1,"lastkey":0,"limit":0},"type":"range"}}],"location":"body","since":"1.0.0","syntax_fmt":"SCARD key","title":"SCARD","tableOfContents":{"sections":[{"id":"examples","title":"Examples"},{"id":"redis-software-and-redis-cloud-compatibility","title":"Redis Software and Redis Cloud compatibility"},{"id":"return-information","title":"Return information"}]},"codeExamples":[]}
scard(
key: byte[]
) → long// The cardinality (number of elements) of the set as an integerscard(
key: String
) → long// The cardinality (number of elements) of the set as an integer
scard(
key: K// the key.
) → Long// Long integer-reply the cardinality (number of elements) of the set, or false if key does not exist.
scard(
key: K// the key.
) → RedisFuture<Long>// Long integer-reply the cardinality (number of elements) of the set, or false if key does not exist.
scard(
key: K// the key.
) → Mono<Long>// Long integer-reply the cardinality (number of elements) of the set, or false if key does not exist.
SetLength(
key: RedisKey, // The key of the set.flags: CommandFlags// The flags to use for this operation.
) → long// The cardinality (number of elements) of the set, or 0 if key does not exist.SetLength(
key: RedisKey, // The key of the set.flags: CommandFlags// The flags to use for this operation.
) → long// The cardinality (number of elements) of the set, or 0 if key does not exist.
SetLength(
key: RedisKey, // The key of the set.flags: CommandFlags// The flags to use for this operation.
) → long// The cardinality (number of elements) of the set, or 0 if key does not exist.SetLength(
key: RedisKey, // The key of the set.flags: CommandFlags// The flags to use for this operation.
) → long// The cardinality (number of elements) of the set, or 0 if key does not exist.