Basic Redis Comands Part -3

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.

KEYSReturns all the keys matching the glob-style pattern as space-separated strings.

LINDEXThis command returns the specified element of the list being stored at the specified key.

LLENThis command returns the length of the list stored at the specified key.

LPOPAtomically returns and removes the first (LPOP) or last (RPOP) element of the list.

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

LRANGEReturn the specified elements of the list stored at the specified key.

LREMRemove the first count occurrences of the value element from the list.

LSETSet the list element at the index (see LINDEX for information about the index argument) with the new value. Out-of-range indexes will generate an error.

LTRIMTrim an existing list so that it will contain only the specified range of elements specified.

MGETGet the values of all the specified keys.


Basic Redis Command part -1

Basic Redis Command Part -2

Basic Redis Command Part -4

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