Symisc Vedis

An Embeddable Datastore Engine

Vedis Built-in Commands - Set/Lists


SADD key member [member2,...]


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.


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
vedis> SCARD users

Symisc Systems
Copyright © Symisc Systems