Basic Redis Commands Part -4

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.

MSETSet the respective keys to the respective values. MSET will replace old values with new values.

MSETNXSet the respective keys to the respective values.

MULTIMarks the start of a transaction block. Subsequent commands will be queued for atomic execution using EXEC.

PEXPIREThis command works exactly like EXPIRE but the time to live of the key is specified in milliseconds instead of seconds.

RENAMEAtomically renames the key oldkey to newkey.

RENAMENXRename oldkey into newkey but fails if the destination key newkey already exists.

RPOPAtomically return and remove the last (RPOP) element of the list.

RPOPLPUSHAtomically return and remove the last (tail) element of the srckey list, and push the element as the first (head) element of the dstkey list.

RPUSHAdd the string value to the head (RPUSH) or tail (LPUSH) of the list stored at the key.

SADDAdd the specified member to the set value stored at the key. If a member is already a member of the set no operation is performed


Basic Redis Command part -1

Basic Redis Command Part -2

Basic Redis Command part -3

Basic Redis Command Part -5

Basic Redis Command Part -6

Basic Redis Command Part -7

Basic Redis Command Part -8

No comments:

Post a Comment