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.

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

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

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

SET: Set the key to holding the string value.

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

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

SINTER: Return the members of a set resulting from the intersection of all the sets hold at the specified keys.

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

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

SMEMBERS: Return 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