Auto-generated index from github.com/redis/docs
| Command | Description | Since |
|---|---|---|
| APPEND | Appends a string to the value of a key. Creates the key if it doesn't exist. | 2.0.0 |
| DECR | Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. | 1.0.0 |
| DECRBY | Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist. | 1.0.0 |
| GET | Returns the string value of a key. | 1.0.0 |
| GETDEL | Returns the string value of a key after deleting the key. | 6.2.0 |
| GETEX | Returns the string value of a key after setting its expiration time. | 6.2.0 |
| GETRANGE | Returns a substring of the string stored at a key. | 2.4.0 |
| GETSET | Returns the previous string value of a key after setting it to a new value. | 1.0.0 |
| INCR | Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. | 1.0.0 |
| INCRBY | Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. | 1.0.0 |
| INCRBYFLOAT | Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist. | 2.6.0 |
| LCS | Finds the longest common substring. | 7.0.0 |
| MGET | Atomically returns the string values of one or more keys. | 1.0.0 |
| MSET | Atomically creates or modifies the string values of one or more keys. | 1.0.1 |
| MSETNX | Atomically modifies the string values of one or more keys only when all keys don't exist. | 1.0.1 |
| PSETEX | Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist. | 2.6.0 |
| SET | Sets the string value of a key, ignoring its type. The key is created if it doesn't exist. | 1.0.0 |
| SETEX | Sets the string value and expiration time of a key. Creates the key if it doesn't exist. | 2.0.0 |
| SETNX | Set the string value of a key only when the key doesn't exist. | 1.0.0 |
| SETRANGE | Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist. | 2.2.0 |
| STRLEN | Returns the length of a string value. | 2.2.0 |
| SUBSTR | Returns a substring from a string value. | 1.0.0 |
| Command | Description | Since |
|---|---|---|
| HDEL | Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain. | 2.0.0 |
| HEXISTS | Determines whether a field exists in a hash. | 2.0.0 |
| HEXPIRE | Set expiry for hash field using relative time to expire (seconds) | 8.0.0 |
| HEXPIREAT | Set expiry for hash field using an absolute Unix timestamp (seconds) | 8.0.0 |
| HEXPIRETIME | Returns the expiration time of a hash field as a Unix timestamp, in seconds. | 8.0.0 |
| HGET | Returns the value of a field in a hash. | 2.0.0 |
| HGETALL | Returns all fields and values in a hash. | 2.0.0 |
HGETF |
For each specified field, returns its value and optionally set the field's remaining expiration time in seconds / milliseconds | 8.0.0 |
| HINCRBY | Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist. | 2.0.0 |
| HINCRBYFLOAT | Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist. | 2.6.0 |
| HKEYS | Returns all fields in a hash. | 2.0.0 |
| HLEN | Returns the number of fields in a hash. | 2.0.0 |
| HMGET | Returns the values of all fields in a hash. | 2.0.0 |
| HMSET | Sets the values of multiple fields. | 2.0.0 |
| HPERSIST | Removes the expiration time for each specified field | 8.0.0 |
| HPEXPIRE | Set expiry for hash field using relative time to expire (milliseconds) | 8.0.0 |
| HPEXPIREAT | Set expiry for hash field using an absolute Unix timestamp (milliseconds) | 8.0.0 |
| HPEXPIRETIME | Returns the expiration time of a hash field as a Unix timestamp, in msec. | 8.0.0 |
| HPTTL | Returns the TTL in milliseconds of a hash field. | 8.0.0 |
| HRANDFIELD | Returns one or more random fields from a hash. | 6.2.0 |
| HSCAN | Iterates over fields and values of a hash. | 2.8.0 |
| HSET | Creates or modifies the value of a field in a hash. | 2.0.0 |
HSETF |
For each specified field, returns its value and optionally set the field's remaining expiration time in seconds / milliseconds | 8.0.0 |
| HSETNX | Sets the value of a field in a hash only when the field doesn't exist. | 2.0.0 |
| HSTRLEN | Returns the length of the value of a field. | 3.2.0 |
| HTTL | Returns the TTL in seconds of a hash field. | 8.0.0 |
| HVALS | Returns all values in a hash. | 2.0.0 |
| Command | Description | Since |
|---|---|---|
| BLMOVE | Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved. | 6.2.0 |
| BLMPOP | Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped. | 7.0.0 |
| BLPOP | Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped. | 2.0.0 |
| BRPOP | Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped. | 2.0.0 |
| BRPOPLPUSH | Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped. | 2.2.0 |
| LINDEX | Returns an element from a list by its index. | 1.0.0 |
| LINSERT | Inserts an element before or after another element in a list. | 2.2.0 |
| LLEN | Returns the length of a list. | 1.0.0 |
| LMOVE | Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved. | 6.2.0 |
| LMPOP | Returns multiple elements from a list after removing them. Deletes the list if the last element was popped. | 7.0.0 |
| LPOP | Returns the first elements in a list after removing it. Deletes the list if the last element was popped. | 1.0.0 |
| LPOS | Returns the index of matching elements in a list. | 6.0.6 |
| LPUSH | Prepends one or more elements to a list. Creates the key if it doesn't exist. | 1.0.0 |
| LPUSHX | Prepends one or more elements to a list only when the list exists. | 2.2.0 |
| LRANGE | Returns a range of elements from a list. | 1.0.0 |
| LREM | Removes elements from a list. Deletes the list if the last element was removed. | 1.0.0 |
| LSET | Sets the value of an element in a list by its index. | 1.0.0 |
| LTRIM | Removes elements from both ends a list. Deletes the list if all elements were trimmed. | 1.0.0 |
| RPOP | Returns and removes the last elements of a list. Deletes the list if the last element was popped. | 1.0.0 |
| RPOPLPUSH | Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped. | 1.2.0 |
| RPUSH | Appends one or more elements to a list. Creates the key if it doesn't exist. | 1.0.0 |
| RPUSHX | Appends an element to a list only when the list exists. | 2.2.0 |
| Command | Description | Since |
|---|---|---|
| SADD | Adds one or more members to a set. Creates the key if it doesn't exist. | 1.0.0 |
| SCARD | Returns the number of members in a set. | 1.0.0 |
| SDIFF | Returns the difference of multiple sets. | 1.0.0 |
| SDIFFSTORE | Stores the difference of multiple sets in a key. | 1.0.0 |
| SINTER | Returns the intersect of multiple sets. | 1.0.0 |
| SINTERCARD | Returns the number of members of the intersect of multiple sets. | 7.0.0 |
| SINTERSTORE | Stores the intersect of multiple sets in a key. | 1.0.0 |
| SISMEMBER | Determines whether a member belongs to a set. | 1.0.0 |
| SMEMBERS | Returns all members of a set. | 1.0.0 |
| SMISMEMBER | Determines whether multiple members belong to a set. | 6.2.0 |
| SMOVE | Moves a member from one set to another. | 1.0.0 |
| SPOP | Returns one or more random members from a set after removing them. Deletes the set if the last member was popped. | 1.0.0 |
| SRANDMEMBER | Get one or multiple random members from a set | 1.0.0 |
| SREM | Removes one or more members from a set. Deletes the set if the last member was removed. | 1.0.0 |
| SSCAN | Iterates over members of a set. | 2.8.0 |
| SUNION | Returns the union of multiple sets. | 1.0.0 |
| SUNIONSTORE | Stores the union of multiple sets in a key. | 1.0.0 |
| Command | Description | Since |
|---|---|---|
| BZMPOP | Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped. | 7.0.0 |
| BZPOPMAX | Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped. | 5.0.0 |
| BZPOPMIN | Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped. | 5.0.0 |
| ZADD | Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist. | 1.2.0 |
| ZCARD | Returns the number of members in a sorted set. | 1.2.0 |
| ZCOUNT | Returns the count of members in a sorted set that have scores within a range. | 2.0.0 |
| ZDIFF | Returns the difference between multiple sorted sets. | 6.2.0 |
| ZDIFFSTORE | Stores the difference of multiple sorted sets in a key. | 6.2.0 |
| ZINCRBY | Increments the score of a member in a sorted set. | 1.2.0 |
| ZINTER | Returns the intersect of multiple sorted sets. | 6.2.0 |
| ZINTERCARD | Returns the number of members of the intersect of multiple sorted sets. | 7.0.0 |
| ZINTERSTORE | Stores the intersect of multiple sorted sets in a key. | 2.0.0 |
| ZLEXCOUNT | Returns the number of members in a sorted set within a lexicographical range. | 2.8.9 |
| ZMPOP | Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped. | 7.0.0 |
| ZMSCORE | Returns the score of one or more members in a sorted set. | 6.2.0 |
| ZPOPMAX | Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped. | 5.0.0 |
| ZPOPMIN | Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped. | 5.0.0 |
| ZRANDMEMBER | Returns one or more random members from a sorted set. | 6.2.0 |
| ZRANGE | Returns members in a sorted set within a range of indexes. | 1.2.0 |
| ZRANGEBYLEX | Returns members in a sorted set within a lexicographical range. | 2.8.9 |
| ZRANGEBYSCORE | Returns members in a sorted set within a range of scores. | 1.0.5 |
| ZRANGESTORE | Stores a range of members from sorted set in a key. | 6.2.0 |
| ZRANK | Returns the index of a member in a sorted set ordered by ascending scores. | 2.0.0 |
| ZREM | Removes one or more members from a sorted set. Deletes the sorted set if all members were removed. | 1.2.0 |
| ZREMRANGEBYLEX | Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed. | 2.8.9 |
| ZREMRANGEBYRANK | Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed. | 2.0.0 |
| ZREMRANGEBYSCORE | Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed. | 1.2.0 |
| ZREVRANGE | Returns members in a sorted set within a range of indexes in reverse order. | 1.2.0 |
| ZREVRANGEBYLEX | Returns members in a sorted set within a lexicographical range in reverse order. | 2.8.9 |
| ZREVRANGEBYSCORE | Returns members in a sorted set within a range of scores in reverse order. | 2.2.0 |
| ZREVRANK | Returns the index of a member in a sorted set ordered by descending scores. | 2.0.0 |
| ZSCAN | Iterates over members and scores of a sorted set. | 2.8.0 |
| ZSCORE | Returns the score of a member in a sorted set. | 1.2.0 |
| ZUNION | Returns the union of multiple sorted sets. | 6.2.0 |
| ZUNIONSTORE | Stores the union of multiple sorted sets in a key. | 2.0.0 |
| Command | Description | Since |
|---|---|---|
| XACK | Returns the number of messages that were successfully acknowledged by the consumer group member of a stream. | 5.0.0 |
| XADD | Appends a new message to a stream. Creates the key if it doesn't exist. | 5.0.0 |
| XAUTOCLAIM | Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member. | 6.2.0 |
| XCLAIM | Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member. | 5.0.0 |
| XDEL | Returns the number of messages after removing them from a stream. | 5.0.0 |
| XGROUP | A container for consumer groups commands. | 5.0.0 |
| XGROUP CREATE | Creates a consumer group. | 5.0.0 |
| XGROUP CREATECONSUMER | Creates a consumer in a consumer group. | 6.2.0 |
| XGROUP DELCONSUMER | Deletes a consumer from a consumer group. | 5.0.0 |
| XGROUP DESTROY | Destroys a consumer group. | 5.0.0 |
| XGROUP HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| XGROUP SETID | Sets the last-delivered ID of a consumer group. | 5.0.0 |
| XINFO | A container for stream introspection commands. | 5.0.0 |
| XINFO CONSUMERS | Returns a list of the consumers in a consumer group. | 5.0.0 |
| XINFO GROUPS | Returns a list of the consumer groups of a stream. | 5.0.0 |
| XINFO HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| XINFO STREAM | Returns information about a stream. | 5.0.0 |
| XLEN | Return the number of messages in a stream. | 5.0.0 |
| XPENDING | Returns the information and entries from a stream consumer group's pending entries list. | 5.0.0 |
| XRANGE | Returns the messages from a stream within a range of IDs. | 5.0.0 |
| XREAD | Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise. | 5.0.0 |
| XREADGROUP | Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise. | 5.0.0 |
| XREVRANGE | Returns the messages from a stream within a range of IDs in reverse order. | 5.0.0 |
| XSETID | An internal command for replicating stream values. | 5.0.0 |
| XTRIM | Deletes messages from the beginning of a stream. | 5.0.0 |
| Command | Description | Since |
|---|---|---|
| PSUBSCRIBE | Listens for messages published to channels that match one or more patterns. | 2.0.0 |
| PUBLISH | Posts a message to a channel. | 2.0.0 |
| PUBSUB | A container for Pub/Sub commands. | 2.8.0 |
| PUBSUB CHANNELS | Returns the active channels. | 2.8.0 |
| PUBSUB HELP | Returns helpful text about the different subcommands. | 6.2.0 |
| PUBSUB NUMPAT | Returns a count of unique pattern subscriptions. | 2.8.0 |
| PUBSUB NUMSUB | Returns a count of subscribers to channels. | 2.8.0 |
| PUBSUB SHARDCHANNELS | Returns the active shard channels. | 7.0.0 |
| PUBSUB SHARDNUMSUB | Returns the count of subscribers of shard channels. | 7.0.0 |
| PUNSUBSCRIBE | Stops listening to messages published to channels that match one or more patterns. | 2.0.0 |
| SPUBLISH | Post a message to a shard channel | 7.0.0 |
| SSUBSCRIBE | Listens for messages published to shard channels. | 7.0.0 |
| SUBSCRIBE | Listens for messages published to channels. | 2.0.0 |
| SUNSUBSCRIBE | Stops listening to messages posted to shard channels. | 7.0.0 |
| UNSUBSCRIBE | Stops listening to messages posted to channels. | 2.0.0 |
| Command | Description | Since |
|---|---|---|
| GEOADD | Adds one or more members to a geospatial index. The key is created if it doesn't exist. | 3.2.0 |
| GEODIST | Returns the distance between two members of a geospatial index. | 3.2.0 |
| GEOHASH | Returns members from a geospatial index as geohash strings. | 3.2.0 |
| GEOPOS | Returns the longitude and latitude of members from a geospatial index. | 3.2.0 |
| GEORADIUS | Queries a geospatial index for members within a distance from a coordinate, optionally stores the result. | 3.2.0 |
| GEORADIUSBYMEMBER | Queries a geospatial index for members within a distance from a member, optionally stores the result. | 3.2.0 |
| GEORADIUSBYMEMBER_RO | Returns members from a geospatial index that are within a distance from a member. | 3.2.10 |
| GEORADIUS_RO | Returns members from a geospatial index that are within a distance from a coordinate. | 3.2.10 |
| GEOSEARCH | Queries a geospatial index for members inside an area of a box or a circle. | 6.2.0 |
| GEOSEARCHSTORE | Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result. | 6.2.0 |
| Command | Description | Since |
|---|---|---|
| PFADD | Adds elements to a HyperLogLog key. Creates the key if it doesn't exist. | 2.8.9 |
| PFCOUNT | Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s). | 2.8.9 |
| PFDEBUG | Internal commands for debugging HyperLogLog values. | 2.8.9 |
| PFMERGE | Merges one or more HyperLogLog values into a single key. | 2.8.9 |
| PFSELFTEST | An internal command for testing HyperLogLog values. | 2.8.9 |
| Command | Description | Since |
|---|---|---|
| BITCOUNT | Counts the number of set bits (population counting) in a string. | 2.6.0 |
| BITFIELD | Performs arbitrary bitfield integer operations on strings. | 3.2.0 |
| BITFIELD_RO | Performs arbitrary read-only bitfield integer operations on strings. | 6.0.0 |
| BITOP | Performs bitwise operations on multiple strings, and stores the result. | 2.6.0 |
| BITPOS | Finds the first set (1) or clear (0) bit in a string. | 2.8.7 |
| GETBIT | Returns a bit value by offset. | 2.2.0 |
| SETBIT | Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist. | 2.2.0 |
| Command | Description | Since |
|---|---|---|
| COPY | Copies the value of a key to a new key. | 6.2.0 |
| DEL | Deletes one or more keys. | 1.0.0 |
| DUMP | Returns a serialized representation of the value stored at a key. | 2.6.0 |
| EXISTS | Determines whether one or more keys exist. | 1.0.0 |
| EXPIRE | Sets the expiration time of a key in seconds. | 1.0.0 |
| EXPIREAT | Sets the expiration time of a key to a Unix timestamp. | 1.2.0 |
| EXPIRETIME | Returns the expiration time of a key as a Unix timestamp. | 7.0.0 |
| KEYS | Returns all key names that match a pattern. | 1.0.0 |
| MIGRATE | Atomically transfers a key from one Redis instance to another. | 2.6.0 |
| MOVE | Moves a key to another database. | 1.0.0 |
| OBJECT | A container for object introspection commands. | 2.2.3 |
| OBJECT ENCODING | Returns the internal encoding of a Redis object. | 2.2.3 |
| OBJECT FREQ | Returns the logarithmic access frequency counter of a Redis object. | 4.0.0 |
| OBJECT HELP | Returns helpful text about the different subcommands. | 6.2.0 |
| OBJECT IDLETIME | Returns the time since the last access to a Redis object. | 2.2.3 |
| OBJECT REFCOUNT | Returns the reference count of a value of a key. | 2.2.3 |
| PERSIST | Removes the expiration time of a key. | 2.2.0 |
| PEXPIRE | Sets the expiration time of a key in milliseconds. | 2.6.0 |
| PEXPIREAT | Sets the expiration time of a key to a Unix milliseconds timestamp. | 2.6.0 |
| PEXPIRETIME | Returns the expiration time of a key as a Unix milliseconds timestamp. | 7.0.0 |
| PTTL | Returns the expiration time in milliseconds of a key. | 2.6.0 |
| RANDOMKEY | Returns a random key name from the database. | 1.0.0 |
| RENAME | Renames a key and overwrites the destination. | 1.0.0 |
| RENAMENX | Renames a key only when the target key name doesn't exist. | 1.0.0 |
| RESTORE | Creates a key from the serialized representation of a value. | 2.6.0 |
| SCAN | Iterates over the key names in the database. | 2.8.0 |
| SORT | Sorts the elements in a list, a set, or a sorted set, optionally storing the result. | 1.0.0 |
| SORT_RO | Returns the sorted elements of a list, a set, or a sorted set. | 7.0.0 |
| TOUCH | Returns the number of existing keys out of those specified after updating the time they were last accessed. | 3.2.1 |
| TTL | Returns the expiration time in seconds of a key. | 1.0.0 |
| TYPE | Determines the type of value stored at a key. | 1.0.0 |
| UNLINK | Asynchronously deletes one or more keys. | 4.0.0 |
| WAIT | Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed. | 3.0.0 |
| WAITAOF | Blocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas. | 7.2.0 |
| Command | Description | Since |
|---|---|---|
| DISCARD | Discards a transaction. | 2.0.0 |
| EXEC | Executes all commands in a transaction. | 1.2.0 |
| MULTI | Starts a transaction. | 1.2.0 |
| UNWATCH | Forgets about watched keys of a transaction. | 2.2.0 |
| WATCH | Monitors changes to keys to determine the execution of a transaction. | 2.2.0 |
| Command | Description | Since |
|---|---|---|
| EVAL | Executes a server-side Lua script. | 2.6.0 |
| EVALSHA | Executes a server-side Lua script by SHA1 digest. | 2.6.0 |
| EVALSHA_RO | Executes a read-only server-side Lua script by SHA1 digest. | 7.0.0 |
| EVAL_RO | Executes a read-only server-side Lua script. | 7.0.0 |
| FCALL | Invokes a function. | 7.0.0 |
| FCALL_RO | Invokes a read-only function. | 7.0.0 |
| FUNCTION | A container for function commands. | 7.0.0 |
| FUNCTION DELETE | Deletes a library and its functions. | 7.0.0 |
| FUNCTION DUMP | Dumps all libraries into a serialized binary payload. | 7.0.0 |
| FUNCTION FLUSH | Deletes all libraries and functions. | 7.0.0 |
| FUNCTION HELP | Returns helpful text about the different subcommands. | 7.0.0 |
| FUNCTION KILL | Terminates a function during execution. | 7.0.0 |
| FUNCTION LIST | Returns information about all libraries. | 7.0.0 |
| FUNCTION LOAD | Creates a library. | 7.0.0 |
| FUNCTION RESTORE | Restores all libraries from a payload. | 7.0.0 |
| FUNCTION STATS | Returns information about a function during execution. | 7.0.0 |
| SCRIPT | A container for Lua scripts management commands. | 2.6.0 |
| SCRIPT DEBUG | Sets the debug mode of server-side Lua scripts. | 3.2.0 |
| SCRIPT EXISTS | Determines whether server-side Lua scripts exist in the script cache. | 2.6.0 |
| SCRIPT FLUSH | Removes all server-side Lua scripts from the script cache. | 2.6.0 |
| SCRIPT HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| SCRIPT KILL | Terminates a server-side Lua script during execution. | 2.6.0 |
| SCRIPT LOAD | Loads a server-side Lua script to the script cache. | 2.6.0 |
| Command | Description | Since |
|---|---|---|
| AUTH | Authenticates the connection. | 1.0.0 |
| CLIENT | A container for client connection commands. | 2.4.0 |
| CLIENT CACHING | Instructs the server whether to track the keys in the next request. | 6.0.0 |
| CLIENT GETNAME | Returns the name of the connection. | 2.6.9 |
| CLIENT GETREDIR | Returns the client ID to which the connection's tracking notifications are redirected. | 6.0.0 |
| CLIENT HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| CLIENT ID | Returns the unique client ID of the connection. | 5.0.0 |
| CLIENT INFO | Returns information about the connection. | 6.2.0 |
| CLIENT KILL | Terminates open connections. | 2.4.0 |
| CLIENT LIST | Lists open connections. | 2.4.0 |
| CLIENT NO-EVICT | Sets the client eviction mode of the connection. | 7.0.0 |
| CLIENT NO-TOUCH | Controls whether commands sent by the client affect the LRU/LFU of accessed keys. | 7.2.0 |
| CLIENT PAUSE | Suspends commands processing. | 3.0.0 |
| CLIENT REPLY | Instructs the server whether to reply to commands. | 3.2.0 |
| CLIENT SETINFO | Sets information specific to the client or connection. | 7.2.0 |
| CLIENT SETNAME | Sets the connection name. | 2.6.9 |
| CLIENT TRACKING | Controls server-assisted client-side caching for the connection. | 6.0.0 |
| CLIENT TRACKINGINFO | Returns information about server-assisted client-side caching for the connection. | 6.2.0 |
| CLIENT UNBLOCK | Unblocks a client blocked by a blocking command from a different connection. | 5.0.0 |
| CLIENT UNPAUSE | Resumes processing commands from paused clients. | 6.2.0 |
| ECHO | Returns the given string. | 1.0.0 |
| HELLO | Handshakes with the Redis server. | 6.0.0 |
| PING | Returns the server's liveliness response. | 1.0.0 |
| QUIT | Closes the connection. | 1.0.0 |
| RESET | Resets the connection. | 6.2.0 |
| SELECT | Changes the selected database. | 1.0.0 |
| Command | Description | Since |
|---|---|---|
| ACL | A container for Access List Control commands. | 6.0.0 |
| ACL CAT | Lists the ACL categories, or the commands inside a category. | 6.0.0 |
| ACL DELUSER | Deletes ACL users, and terminates their connections. | 6.0.0 |
| ACL DRYRUN | Simulates the execution of a command by a user, without executing the command. | 7.0.0 |
| ACL GENPASS | Generates a pseudorandom, secure password that can be used to identify ACL users. | 6.0.0 |
| ACL GETUSER | Lists the ACL rules of a user. | 6.0.0 |
| ACL HELP | Returns helpful text about the different subcommands. | 6.0.0 |
| ACL LIST | Dumps the effective rules in ACL file format. | 6.0.0 |
| ACL LOAD | Reloads the rules from the configured ACL file. | 6.0.0 |
| ACL LOG | Lists recent security events generated due to ACL rules. | 6.0.0 |
| ACL SAVE | Saves the effective ACL rules in the configured ACL file. | 6.0.0 |
| ACL SETUSER | Creates and modifies an ACL user and its rules. | 6.0.0 |
| ACL USERS | Lists all ACL users. | 6.0.0 |
| ACL WHOAMI | Returns the authenticated username of the current connection. | 6.0.0 |
| BGREWRITEAOF | Asynchronously rewrites the append-only file to disk. | 1.0.0 |
| BGSAVE | Asynchronously saves the database(s) to disk. | 1.0.0 |
| COMMAND | Returns detailed information about all commands. | 2.8.13 |
| COMMAND COUNT | Returns a count of commands. | 2.8.13 |
| COMMAND DOCS | Returns documentary information about one, multiple or all commands. | 7.0.0 |
| COMMAND GETKEYS | Extracts the key names from an arbitrary command. | 2.8.13 |
| COMMAND GETKEYSANDFLAGS | Extracts the key names and access flags for an arbitrary command. | 7.0.0 |
| COMMAND HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| COMMAND INFO | Returns information about one, multiple or all commands. | 2.8.13 |
| COMMAND LIST | Returns a list of command names. | 7.0.0 |
| CONFIG | A container for server configuration commands. | 2.0.0 |
| CONFIG GET | Returns the effective values of configuration parameters. | 2.0.0 |
| CONFIG HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| CONFIG RESETSTAT | Resets the server's statistics. | 2.0.0 |
| CONFIG REWRITE | Persists the effective configuration to file. | 2.8.0 |
| CONFIG SET | Sets configuration parameters in-flight. | 2.0.0 |
| DBSIZE | Returns the number of keys in the database. | 1.0.0 |
| DEBUG | A container for debugging commands. | 1.0.0 |
| FAILOVER | Starts a coordinated failover from a server to one of its replicas. | 6.2.0 |
| FLUSHALL | Removes all keys from all databases. | 1.0.0 |
| FLUSHDB | Remove all keys from the current database. | 1.0.0 |
| INFO | Returns information and statistics about the server. | 1.0.0 |
| LASTSAVE | Returns the Unix timestamp of the last successful save to disk. | 1.0.0 |
| LATENCY | A container for latency diagnostics commands. | 2.8.13 |
| LATENCY DOCTOR | Returns a human-readable latency analysis report. | 2.8.13 |
| LATENCY GRAPH | Returns a latency graph for an event. | 2.8.13 |
| LATENCY HELP | Returns helpful text about the different subcommands. | 2.8.13 |
| LATENCY HISTOGRAM | Returns the cumulative distribution of latencies of a subset or all commands. | 7.0.0 |
| LATENCY HISTORY | Returns timestamp-latency samples for an event. | 2.8.13 |
| LATENCY LATEST | Returns the latest latency samples for all events. | 2.8.13 |
| LATENCY RESET | Resets the latency data for one or more events. | 2.8.13 |
| LOLWUT | Displays computer art and the Redis version | 5.0.0 |
| MEMORY | A container for memory diagnostics commands. | 4.0.0 |
| MEMORY DOCTOR | Outputs a memory problems report. | 4.0.0 |
| MEMORY HELP | Returns helpful text about the different subcommands. | 4.0.0 |
| MEMORY MALLOC-STATS | Returns the allocator statistics. | 4.0.0 |
| MEMORY PURGE | Asks the allocator to release memory. | 4.0.0 |
| MEMORY STATS | Returns details about memory usage. | 4.0.0 |
| MEMORY USAGE | Estimates the memory usage of a key. | 4.0.0 |
| MODULE | A container for module commands. | 4.0.0 |
| MODULE HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| MODULE LIST | Returns all loaded modules. | 4.0.0 |
| MODULE LOAD | Loads a module. | 4.0.0 |
| MODULE LOADEX | Loads a module using extended parameters. | 7.0.0 |
| MODULE UNLOAD | Unloads a module. | 4.0.0 |
| MONITOR | Listens for all requests received by the server in real-time. | 1.0.0 |
| PSYNC | An internal command used in replication. | 2.8.0 |
| REPLCONF | An internal command for configuring the replication stream. | 3.0.0 |
| REPLICAOF | Configures a server as replica of another, or promotes it to a master. | 5.0.0 |
| RESTORE-ASKING | An internal command for migrating keys in a cluster. | 3.0.0 |
| ROLE | Returns the replication role. | 2.8.12 |
| SAVE | Synchronously saves the database(s) to disk. | 1.0.0 |
| SHUTDOWN | Synchronously saves the database(s) to disk and shuts down the Redis server. | 1.0.0 |
| SLAVEOF | Sets a Redis server as a replica of another, or promotes it to being a master. | 1.0.0 |
| SLOWLOG | A container for slow log commands. | 2.2.12 |
| SLOWLOG GET | Returns the slow log's entries. | 2.2.12 |
| SLOWLOG HELP | Show helpful text about the different subcommands | 6.2.0 |
| SLOWLOG LEN | Returns the number of entries in the slow log. | 2.2.12 |
| SLOWLOG RESET | Clears all entries from the slow log. | 2.2.12 |
| SWAPDB | Swaps two Redis databases. | 4.0.0 |
| SYNC | An internal command used in replication. | 1.0.0 |
| TIME | Returns the server time. | 2.6.0 |
| Command | Description | Since |
|---|---|---|
| ASKING | Signals that a cluster client is following an -ASK redirect. | 3.0.0 |
| CLUSTER | A container for Redis Cluster commands. | 3.0.0 |
| CLUSTER ADDSLOTS | Assigns new hash slots to a node. | 3.0.0 |
| CLUSTER ADDSLOTSRANGE | Assigns new hash slot ranges to a node. | 7.0.0 |
| CLUSTER BUMPEPOCH | Advances the cluster config epoch. | 3.0.0 |
| CLUSTER COUNT-FAILURE-REPORTS | Returns the number of active failure reports active for a node. | 3.0.0 |
| CLUSTER COUNTKEYSINSLOT | Returns the number of keys in a hash slot. | 3.0.0 |
| CLUSTER DELSLOTS | Sets hash slots as unbound for a node. | 3.0.0 |
| CLUSTER DELSLOTSRANGE | Sets hash slot ranges as unbound for a node. | 7.0.0 |
| CLUSTER FAILOVER | Forces a replica to perform a manual failover of its master. | 3.0.0 |
| CLUSTER FLUSHSLOTS | Deletes all slots information from a node. | 3.0.0 |
| CLUSTER FORGET | Removes a node from the nodes table. | 3.0.0 |
| CLUSTER GETKEYSINSLOT | Returns the key names in a hash slot. | 3.0.0 |
| CLUSTER HELP | Returns helpful text about the different subcommands. | 5.0.0 |
| CLUSTER INFO | Returns information about the state of a node. | 3.0.0 |
| CLUSTER KEYSLOT | Returns the hash slot for a key. | 3.0.0 |
| CLUSTER LINKS | Returns a list of all TCP links to and from peer nodes. | 7.0.0 |
| CLUSTER MEET | Forces a node to handshake with another node. | 3.0.0 |
| CLUSTER MYID | Returns the ID of a node. | 3.0.0 |
| CLUSTER MYSHARDID | Returns the shard ID of a node. | 7.2.0 |
| CLUSTER NODES | Returns the cluster configuration for a node. | 3.0.0 |
| CLUSTER REPLICAS | Lists the replica nodes of a master node. | 5.0.0 |
| CLUSTER REPLICATE | Configure a node as replica of a master node. | 3.0.0 |
| CLUSTER RESET | Resets a node. | 3.0.0 |
| CLUSTER SAVECONFIG | Forces a node to save the cluster configuration to disk. | 3.0.0 |
| CLUSTER SET-CONFIG-EPOCH | Sets the configuration epoch for a new node. | 3.0.0 |
| CLUSTER SETSLOT | Binds a hash slot to a node. | 3.0.0 |
| CLUSTER SHARDS | Returns the mapping of cluster slots to shards. | 7.0.0 |
| CLUSTER SLAVES | Lists the replica nodes of a master node. | 3.0.0 |
| CLUSTER SLOTS | Returns the mapping of cluster slots to nodes. | 3.0.0 |
| READONLY | Enables read-only queries for a connection to a Redis Cluster replica node. | 3.0.0 |
| READWRITE | Enables read-write queries for a connection to a Reids Cluster replica node. | 3.0.0 |