code | type | title | description |
---|---|---|---|
true |
page |
zcard |
MemoryStorage:zcard |
Returns the number of elements held by a sorted set.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
options |
JSON Object | Optional parameters |
callback |
function | Callback |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns an integer containing the number of elements in a sorted set.
<<< ./snippets/zcard-1.php
Callback response:
4