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.

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

MSETNX: Set the respective keys to the respective values.

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

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

RENAME: Atomically renames the key oldkey to newkey.

RENAMENX: Rename oldkey into newkey but fails if the destination key newkey already exists.

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

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

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

SADD: Add 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