An Embeddable Datastore Engine |
Tweet |
Follow @Vedis |
Vedis Built-in Commands - Set/Lists
Command
SADD key member [member2,...]
Description
Add the specified members to the set stored at key. Specified members that are already a member of this set are ignored. If key does not exist, a new set is created before adding the specified members. An error is returned when the value stored at key is not a set.
Return value
Integer: Number of item succesfully stored.
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