Redis string
commands (22/22 implemented)¶
APPEND¶
Appends a string to the value of a key. Creates the key if it doesn't exist.
DECR¶
Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.
DECRBY¶
Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist.
GET¶
Returns the string value of a key.
GETDEL¶
Returns the string value of a key after deleting the key.
GETEX¶
Returns the string value of a key after setting its expiration time.
GETRANGE¶
Returns a substring of the string stored at a key.
GETSET¶
Returns the previous string value of a key after setting it to a new value.
INCR¶
Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.
INCRBY¶
Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist.
INCRBYFLOAT¶
Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist.
LCS¶
Finds the longest common substring.
MGET¶
Atomically returns the string values of one or more keys.
MSET¶
Atomically creates or modifies the string values of one or more keys.
MSETNX¶
Atomically modifies the string values of one or more keys only when all keys don't exist.
PSETEX¶
Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.
SET¶
Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.
SETEX¶
Sets the string value and expiration time of a key. Creates the key if it doesn't exist.
SETNX¶
Set the string value of a key only when the key doesn't exist.
SETRANGE¶
Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.
STRLEN¶
Returns the length of a string value.
SUBSTR¶
Returns a substring from a string value.