How do I get the size of a set on Redis? - Stack Overflow
You are looking for the SCARD
command:
SCARD key
Returns the set cardinality (number of elements) of the set stored at
Return value
Integer reply: the cardinality (number of elements) of the set, or 0 if key does not exist.
Read full article from How do I get the size of a set on Redis? - Stack Overflow
No comments:
Post a Comment