Basic Redis Commands Part -5

Redis is an open-source, BSD-licensed advanced key-value store. It is often referred to as a data structure server since the keys can contain strings, hashes, lists, sets, and sorted sets. Redis is written in C.

Redis is a NoSQL database that follows the principle of a key-value store.

Some commands of Redis.

SCARDReturn the set cardinality (number of elements). If the key does not exist 0 is returned, like for empty sets.

SDIFFReturn the members of a set resulting from the difference between the first set provided and all the successive sets.

SDIFFSTOREThis command works exactly like SDIFF but instead of being returned the resulting set is stored in dstkey.

SETSet the key to holding the string value.

SETEXSet the key to holding the string value and set the key to timeout after a given number of seconds.

SETNXSETNX works exactly like SET with the only difference that if the key already exists no operation is performed.

SINTERReturn the members of a set resulting from the intersection of all the sets hold at the specified keys.

SINTERSTOREThis commnad works exactly like SINTER but instead of being returned the resulting set is stored as dstkey.

SISMEMBERReturn 1 if the member is a member of the set stored at key, otherwise, 0 is returned.

SMEMBERSReturn all the members (elements) of the set value stored at the key.


Basic Redis Command part -1

Basic Redis Command Part -2

Basic Redis Command part -3

Basic Redis Command Part -4

Basic Redis Command Part -6

Basic Redis Command Part -7

Basic Redis Command Part -8


No comments:

Post a Comment