Basic Redis Commands Part -6

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.

SMOVEMove the specified member from the set at srckey to the set at dstkey.

SPOPRemove a random element from a Set returning it as a return value.

SRANDMEMBERReturn a random element from a Set, without removing the element.

SREMRemove the specified member from the set value stored at the key.

SUNIONReturn the members of a set resulting from the union of all the sets held at the specified keys.

SUNIONSTOREThis command works exactly like SUNION but instead of being returned the resulting set is stored as dstkey.

TTLThe TTL command returns the remaining time to live in seconds of a key that has an EXPIRE set.

TYPEReturn the type of the value stored at the key in form of a string.

ZADDAdd the specified member having the specified score to the sorted set stored at the key.

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


Basic Redis Command part -1

Basic Redis Command Part -2

Basic Redis Command part -3

Basic Redis Command Part -4

Basic Redis Command Part -5

Basic Redis Command Part -7

Basic Redis Command Part -8


No comments:

Post a Comment