An Embeddable Datastore Engine |
Tweet |
Follow @Vedis |
Vedis Built-in Commands - Set/Lists
Command
SCARD key
Description
Returns the set cardinality (number of elements) of the set stored at key.
Return value
Integer: Number of fields in the set, or 0 when key does not exist.
Example
Refer to the download page for some C/C++ samples on how to invoke this command from your host application.
vedis> SADD users james dean tareq
3
vedis> SCARD users
3
3
vedis> SCARD users
3
Copyright © Symisc Systems