Symisc Vedis

An Embeddable Datastore Engine



Vedis Built-in Commands - Set/Lists

Command

SLEN 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> SLEN users
3




Symisc Systems
Copyright © Symisc Systems