• Commands
  • Documentation
  • Community

ACL

A container for Access List Control commands

ACL CAT

List the ACL categories or the commands inside a category

ACL DELUSER

Remove the specified ACL users and the associated rules

ACL DRYRUN

Returns whether the user can execute the given command without executing the command.

ACL GENPASS

Generate a pseudorandom secure password to use for ACL users

ACL GETUSER

Get the rules for a specific ACL user

ACL HELP

Show helpful text about the different subcommands

ACL LIST

List the current ACL rules in ACL config file format

ACL LOAD

Reload the ACLs from the configured ACL file

ACL LOG

List latest events denied because of ACLs in place

ACL SAVE

Save the current ACL rules in the configured ACL file

ACL SETUSER

Modify or create the rules for a specific ACL user

ACL USERS

List the username of all the configured ACL rules

ACL WHOAMI

Return the name of the user associated to the current connection

APPEND

Append a value to a key

ASKING

Sent by cluster clients after an -ASK redirect

AUTH

Authenticate to the server

BGREWRITEAOF

Asynchronously rewrite the append-only file

BGSAVE

Asynchronously save the dataset to disk

BITCOUNT

Count set bits in a string

BITFIELD

Perform arbitrary bitfield integer operations on strings

BITFIELD_RO

Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD

BITOP

Perform bitwise operations between strings

BITPOS

Find first bit set or clear in a string

BLMOVE

Pop an element from a list, push it to another list and return it; or block until one is available

BLMPOP

Pop elements from a list, or block until one is available

BLPOP

Remove and get the first element in a list, or block until one is available

BRPOP

Remove and get the last element in a list, or block until one is available

BRPOPLPUSH

Pop an element from a list, push it to another list and return it; or block until one is available

BZMPOP

Remove and return members with scores in a sorted set or block until one is available

BZPOPMAX

Remove and return the member with the highest score from one or more sorted sets, or block until one is available

BZPOPMIN

Remove and return the member with the lowest score from one or more sorted sets, or block until one is available

CLIENT

A container for client connection commands

CLIENT CACHING

Instruct the server about tracking or not keys in the next request

CLIENT GETNAME

Get the current connection name

CLIENT GETREDIR

Get tracking notifications redirection client ID if any

CLIENT HELP

Show helpful text about the different subcommands

CLIENT ID

Returns the client ID for the current connection

CLIENT INFO

Returns information about the current client connection.

CLIENT KILL

Kill the connection of a client

CLIENT LIST

Get the list of client connections

CLIENT NO-EVICT

Set client eviction mode for the current connection

CLIENT PAUSE

Stop processing commands from clients for some time

CLIENT REPLY

Instruct the server whether to reply to commands

CLIENT SETNAME

Set the current connection name

CLIENT TRACKING

Enable or disable server assisted client side caching support

CLIENT TRACKINGINFO

Return information about server assisted client side caching for the current connection

CLIENT UNBLOCK

Unblock a client blocked in a blocking command from a different connection

CLIENT UNPAUSE

Resume processing of clients that were paused

CLUSTER

A container for cluster commands

CLUSTER ADDSLOTS

Assign new hash slots to receiving node

CLUSTER ADDSLOTSRANGE

Assign new hash slots to receiving node

CLUSTER BUMPEPOCH

Advance the cluster config epoch

CLUSTER COUNT-FAILURE-REPORTS

Return the number of failure reports active for a given node

CLUSTER COUNTKEYSINSLOT

Return the number of local keys in the specified hash slot

CLUSTER DELSLOTS

Set hash slots as unbound in receiving node

CLUSTER DELSLOTSRANGE

Set hash slots as unbound in receiving node

CLUSTER FAILOVER

Forces a replica to perform a manual failover of its master.

CLUSTER FLUSHSLOTS

Delete a node's own slots information

CLUSTER FORGET

Remove a node from the nodes table

CLUSTER GETKEYSINSLOT

Return local key names in the specified hash slot

CLUSTER HELP

Show helpful text about the different subcommands

CLUSTER INFO

Provides info about Redis Cluster node state

CLUSTER KEYSLOT

Returns the hash slot of the specified key

CLUSTER LINKS

Returns a list of all TCP links to and from peer nodes in cluster

CLUSTER MEET

Force a node cluster to handshake with another node

CLUSTER MYID

Return the node id

CLUSTER NODES

Get Cluster config for the node

CLUSTER REPLICAS

List replica nodes of the specified master node

CLUSTER REPLICATE

Reconfigure a node as a replica of the specified master node

CLUSTER RESET

Reset a Redis Cluster node

CLUSTER SAVECONFIG

Forces the node to save cluster state on disk

CLUSTER SET-CONFIG-EPOCH

Set the configuration epoch in a new node

CLUSTER SETSLOT

Bind a hash slot to a specific node

CLUSTER SLAVES

List replica nodes of the specified master node

CLUSTER SLOTS

Get array of Cluster slot to node mappings

COMMAND

Get array of Redis command details

COMMAND COUNT

Get total number of Redis commands

COMMAND DOCS

Get array of specific Redis command documentation

COMMAND GETKEYS

Extract keys given a full Redis command

COMMAND HELP

Show helpful text about the different subcommands

COMMAND INFO

Get array of specific Redis command details, or all when no argument is given.

COMMAND LIST

Get an array of Redis command names

CONFIG

A container for server configuration commands

CONFIG GET

Get the values of configuration parameters

CONFIG HELP

Show helpful text about the different subcommands

CONFIG RESETSTAT

Reset the stats returned by INFO

CONFIG REWRITE

Rewrite the configuration file with the in memory configuration

CONFIG SET

Set configuration parameters to the given values

COPY

Copy a key

DBSIZE

Return the number of keys in the selected database

DEBUG

A container for debugging commands

DECR

Decrement the integer value of a key by one

DECRBY

Decrement the integer value of a key by the given number

DEL

Delete a key

DISCARD

Discard all commands issued after MULTI

DUMP

Return a serialized version of the value stored at the specified key.

ECHO

Echo the given string

EVAL

Execute a Lua script server side

EVAL_RO

Execute a read-only Lua script server side

EVALSHA

Execute a Lua script server side

EVALSHA_RO

Execute a read-only Lua script server side

EXEC

Execute all commands issued after MULTI

EXISTS

Determine if a key exists

EXPIRE

Set a key's time to live in seconds

EXPIREAT

Set the expiration for a key as a UNIX timestamp

EXPIRETIME

Get the expiration Unix timestamp for a key

FAILOVER

Start a coordinated failover between this server and one of its replicas.

FCALL

PATCH__TBD__38__

FCALL_RO

PATCH__TBD__7__

FLUSHALL

Remove all keys from all databases

FLUSHDB

Remove all keys from the current database

FUNCTION

A container for function commands

FUNCTION DELETE

Delete a function by name

FUNCTION DUMP

Dump all functions into a serialized binary payload

FUNCTION FLUSH

Deleting all functions

FUNCTION HELP

Show helpful text about the different subcommands

FUNCTION KILL

Kill the function currently in execution.

FUNCTION LIST

List information about all the functions

FUNCTION LOAD

Create a function with the given arguments (name, code, description)

FUNCTION RESTORE

Restore all the functions on the given payload

FUNCTION STATS

Return information about the function currently running (name, description, duration)

GEOADD

Add one or more geospatial items in the geospatial index represented using a sorted set

GEODIST

Returns the distance between two members of a geospatial index

GEOHASH

Returns members of a geospatial index as standard geohash strings

GEOPOS

Returns longitude and latitude of members of a geospatial index

GEORADIUS

Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point

GEORADIUS_RO

A read-only variant for GEORADIUS

GEORADIUSBYMEMBER

Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member

GEORADIUSBYMEMBER_RO

A read-only variant for GEORADIUSBYMEMBER

GEOSEARCH

Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.

GEOSEARCHSTORE

Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key.

GET

Get the value of a key

GETBIT

Returns the bit value at offset in the string value stored at key

GETDEL

Get the value of a key and delete the key

GETEX

Get the value of a key and optionally set its expiration

GETRANGE

Get a substring of the string stored at a key

GETSET

Set the string value of a key and return its old value

HDEL

Delete one or more hash fields

HELLO

Handshake with Redis

HEXISTS

Determine if a hash field exists

HGET

Get the value of a hash field

HGETALL

Get all the fields and values in a hash

HINCRBY

Increment the integer value of a hash field by the given number

HINCRBYFLOAT

Increment the float value of a hash field by the given amount

HKEYS

Get all the fields in a hash

HLEN

Get the number of fields in a hash

HMGET

Get the values of all the given hash fields

HMSET

Set multiple hash fields to multiple values

HRANDFIELD

Get one or multiple random fields from a hash

HSCAN

Incrementally iterate hash fields and associated values

HSET

Set the string value of a hash field

HSETNX

Set the value of a hash field, only if the field does not exist

HSTRLEN

Get the length of the value of a hash field

HVALS

Get all the values in a hash

INCR

Increment the integer value of a key by one

INCRBY

Increment the integer value of a key by the given amount

INCRBYFLOAT

Increment the float value of a key by the given amount

INFO

Get information and statistics about the server

KEYS

Find all keys matching the given pattern

LASTSAVE

Get the UNIX time stamp of the last successful save to disk

LATENCY

A container for latency diagnostics commands

LATENCY DOCTOR

Return a human readable latency analysis report.

LATENCY GRAPH

Return a latency graph for the event.

LATENCY HELP

Show helpful text about the different subcommands.

LATENCY HISTOGRAM

Return the cumulative distribution of latencies of a subset of commands or all.

LATENCY HISTORY

Return timestamp-latency samples for the event.

LATENCY LATEST

Return the latest latency samples for all events.

LATENCY RESET

Reset latency data for one or more events.

LCS

Find longest common substring

LINDEX

Get an element from a list by its index

LINSERT

Insert an element before or after another element in a list

LLEN

Get the length of a list

LMOVE

Pop an element from a list, push it to another list and return it

LMPOP

Pop elements from a list

LOLWUT

Display some computer art and the Redis version

LPOP

Remove and get the first elements in a list

LPOS

Return the index of matching elements on a list

LPUSH

Prepend one or multiple elements to a list

LPUSHX

Prepend an element to a list, only if the list exists

LRANGE

Get a range of elements from a list

LREM

Remove elements from a list

LSET

Set the value of an element in a list by its index

LTRIM

Trim a list to the specified range

MEMORY

A container for memory diagnostics commands

MEMORY DOCTOR

Outputs memory problems report

MEMORY HELP

Show helpful text about the different subcommands

MEMORY MALLOC-STATS

Show allocator internal stats

MEMORY PURGE

Ask the allocator to release memory

MEMORY STATS

Show memory usage details

MEMORY USAGE

Estimate the memory usage of a key

MGET

Get the values of all the given keys

MIGRATE

Atomically transfer a key from a Redis instance to another one.

MODULE

A container for module commands

MODULE HELP

Show helpful text about the different subcommands

MODULE LIST

List all modules loaded by the server

MODULE LOAD

Load a module

MODULE UNLOAD

Unload a module

MONITOR

Listen for all requests received by the server in real time

MOVE

Move a key to another database

MSET

Set multiple keys to multiple values

MSETNX

Set multiple keys to multiple values, only if none of the keys exist

MULTI

Mark the start of a transaction block

OBJECT

A container for object introspection commands

OBJECT ENCODING

Inspect the internal encoding of a Redis object

OBJECT FREQ

Get the logarithmic access frequency counter of a Redis object

OBJECT HELP

Show helpful text about the different subcommands

OBJECT IDLETIME

Get the time since a Redis object was last accessed

OBJECT REFCOUNT

Get the number of references to the value of the key

PERSIST

Remove the expiration from a key

PEXPIRE

Set a key's time to live in milliseconds

PEXPIREAT

Set the expiration for a key as a UNIX timestamp specified in milliseconds

PEXPIRETIME

Get the expiration Unix timestamp for a key in milliseconds

PFADD

Adds the specified elements to the specified HyperLogLog.

PFCOUNT

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).

PFDEBUG

Internal commands for debugging HyperLogLog values

PFMERGE

Merge N different HyperLogLogs into a single one.

PFSELFTEST

An internal command for testing HyperLogLog values

PING

Ping the server

PSETEX

Set the value and expiration in milliseconds of a key

PSUBSCRIBE

Listen for messages published to channels matching the given patterns

PSYNC

Internal command used for replication

PTTL

Get the time to live for a key in milliseconds

PUBLISH

Post a message to a channel

PUBSUB

A container for Pub/Sub commands

PUBSUB CHANNELS

List active channels

PUBSUB HELP

Show helpful text about the different subcommands

PUBSUB NUMPAT

Get the count of unique patterns pattern subscriptions

PUBSUB NUMSUB

Get the count of subscribers for channels

PUBSUB SHARDCHANNELS

List active shard channels

PUBSUB SHARDNUMSUB

Get the count of subscribers for shard channels

PUNSUBSCRIBE

Stop listening for messages posted to channels matching the given patterns

QUIT

Close the connection

RANDOMKEY

Return a random key from the keyspace

READONLY

Enables read queries for a connection to a cluster replica node

READWRITE

Disables read queries for a connection to a cluster replica node

RENAME

Rename a key

RENAMENX

Rename a key, only if the new key does not exist

REPLCONF

An internal command for configuring the replication stream

REPLICAOF

Make the server a replica of another instance, or promote it as master.

RESET

Reset the connection

RESTORE

Create a key using the provided serialized value, previously obtained using DUMP.

RESTORE-ASKING

An internal command for migrating keys in a cluster

ROLE

Return the role of the instance in the context of replication

RPOP

Remove and get the last elements in a list

RPOPLPUSH

Remove the last element in a list, prepend it to another list and return it

RPUSH

Append one or multiple elements to a list

RPUSHX

Append an element to a list, only if the list exists

SADD

Add one or more members to a set

SAVE

Synchronously save the dataset to disk

SCAN

Incrementally iterate the keys space

SCARD

Get the number of members in a set

SCRIPT

A container for Lua scripts management commands

SCRIPT DEBUG

Set the debug mode for executed scripts.

SCRIPT EXISTS

Check existence of scripts in the script cache.

SCRIPT FLUSH

Remove all the scripts from the script cache.

SCRIPT HELP

Show helpful text about the different subcommands

SCRIPT KILL

Kill the script currently in execution.

SCRIPT LOAD

Load the specified Lua script into the script cache.

SDIFF

Subtract multiple sets

SDIFFSTORE

Subtract multiple sets and store the resulting set in a key

SELECT

Change the selected database for the current connection

SET

Set the string value of a key

SETBIT

Sets or clears the bit at offset in the string value stored at key

SETEX

Set the value and expiration of a key

SETNX

Set the value of a key, only if the key does not exist

SETRANGE

Overwrite part of a string at key starting at the specified offset

SHUTDOWN

Synchronously save the dataset to disk and then shut down the server

SINTER

Intersect multiple sets

SINTERCARD

Intersect multiple sets and return the cardinality of the result

SINTERSTORE

Intersect multiple sets and store the resulting set in a key

SISMEMBER

Determine if a given value is a member of a set

SLAVEOF

Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.

SLOWLOG

A container for slow log commands

SLOWLOG GET

Get the slow log's entries

SLOWLOG HELP

Show helpful text about the different subcommands

SLOWLOG LEN

Get the slow log's length

SLOWLOG RESET

Clear all entries from the slow log

SMEMBERS

Get all the members in a set

SMISMEMBER

Returns the membership associated with the given elements for a set

SMOVE

Move a member from one set to another

SORT

Sort the elements in a list, set or sorted set

SORT_RO

Sort the elements in a list, set or sorted set. Read-only variant of SORT.

SPOP

Remove and return one or multiple random members from a set

SPUBLISH

Post a message to a shard channel

SRANDMEMBER

Get one or multiple random members from a set

SREM

Remove one or more members from a set

SSCAN

Incrementally iterate Set elements

SSUBSCRIBE

Listen for messages published to the given shard channels

STRLEN

Get the length of the value stored in a key

SUBSCRIBE

Listen for messages published to the given channels

SUBSTR

Get a substring of the string stored at a key

SUNION

Add multiple sets

SUNIONSTORE

Add multiple sets and store the resulting set in a key

SUNSUBSCRIBE

Stop listening for messages posted to the given shard channels

SWAPDB

Swaps two Redis databases

SYNC

Internal command used for replication

TIME

Return the current server time

TOUCH

Alters the last access time of a key(s). Returns the number of existing keys specified.

TTL

Get the time to live for a key in seconds

TYPE

Determine the type stored at key

UNLINK

Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.

UNSUBSCRIBE

Stop listening for messages posted to the given channels

UNWATCH

Forget about all watched keys

WAIT

Wait for the synchronous replication of all the write commands sent in the context of the current connection

WATCH

Watch the given keys to determine execution of the MULTI/EXEC block

XACK

Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.

XADD

Appends a new entry to a stream

XAUTOCLAIM

Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.

XCLAIM

Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.

XDEL

Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.

XGROUP

A container for consumer groups commands

XGROUP CREATE

Create a consumer group.

XGROUP CREATECONSUMER

Create a consumer in a consumer group.

XGROUP DELCONSUMER

Delete a consumer from a consumer group.

XGROUP DESTROY

Destroy a consumer group.

XGROUP HELP

Show helpful text about the different subcommands

XGROUP SETID

Set a consumer group to an arbitrary last delivered ID value.

XINFO

A container for stream introspection commands

XINFO CONSUMERS

List the consumers in a consumer group

XINFO GROUPS

List the consumer groups of a stream

XINFO HELP

Show helpful text about the different subcommands

XINFO STREAM

Get information about a stream

XLEN

Return the number of entries in a stream

XPENDING

Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.

XRANGE

Return a range of elements in a stream, with IDs matching the specified IDs interval

XREAD

Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.

XREADGROUP

Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.

XREVRANGE

Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE

XSETID

An internal command for replicating stream values

XTRIM

Trims the stream to (approximately if '~' is passed) a certain size

ZADD

Add one or more members to a sorted set, or update its score if it already exists

ZCARD

Get the number of members in a sorted set

ZCOUNT

Count the members in a sorted set with scores within the given values

ZDIFF

Subtract multiple sorted sets

ZDIFFSTORE

Subtract multiple sorted sets and store the resulting sorted set in a new key

ZINCRBY

Increment the score of a member in a sorted set

ZINTER

Intersect multiple sorted sets

ZINTERCARD

Intersect multiple sorted sets and return the cardinality of the result

ZINTERSTORE

Intersect multiple sorted sets and store the resulting sorted set in a new key

ZLEXCOUNT

Count the number of members in a sorted set between a given lexicographical range

ZMPOP

Remove and return members with scores in a sorted set

ZMSCORE

Get the score associated with the given members in a sorted set

ZPOPMAX

Remove and return members with the highest scores in a sorted set

ZPOPMIN

Remove and return members with the lowest scores in a sorted set

ZRANDMEMBER

Get one or multiple random elements from a sorted set

ZRANGE

Return a range of members in a sorted set

ZRANGEBYLEX

Return a range of members in a sorted set, by lexicographical range

ZRANGEBYSCORE

Return a range of members in a sorted set, by score

ZRANGESTORE

Store a range of members from sorted set into another key

ZRANK

Determine the index of a member in a sorted set

ZREM

Remove one or more members from a sorted set

ZREMRANGEBYLEX

Remove all members in a sorted set between the given lexicographical range

ZREMRANGEBYRANK

Remove all members in a sorted set within the given indexes

ZREMRANGEBYSCORE

Remove all members in a sorted set within the given scores

ZREVRANGE

Return a range of members in a sorted set, by index, with scores ordered from high to low

ZREVRANGEBYLEX

Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.

ZREVRANGEBYSCORE

Return a range of members in a sorted set, by score, with scores ordered from high to low

ZREVRANK

Determine the index of a member in a sorted set, with scores ordered from high to low

ZSCAN

Incrementally iterate sorted sets elements and associated scores

ZSCORE

Get the score associated with the given member in a sorted set

ZUNION

Add multiple sorted sets

ZUNIONSTORE

Add multiple sorted sets and store the resulting sorted set in a new key

This website is open source software and is sponsored by Redis Ltd. See all credits.