Interface Command
- Version:
- redis_version:8.6.2
- Author:
- Paulo Lopes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandA container for Access List Control commands.static final CommandAppends a string to the value of a key.static final CommandSignals that a cluster client is following an -ASK redirect.static final CommandAuthenticates the connection.static final CommandAdds an item to a Bloom Filter.static final CommandReturns the cardinality of a Bloom filter.static final CommandThis command only exists in Redis.static final CommandChecks whether an item exists in a Bloom Filter.static final CommandReturns information about a Bloom Filter.static final CommandAdds one or more items to a Bloom Filter.static final CommandRestores a filter previously saved using SCANDUMP.static final CommandAdds one or more items to a Bloom Filter.static final CommandChecks whether one or more items exist in a Bloom Filter.static final CommandCreates a new Bloom Filter.static final CommandBegins an incremental save of the bloom filter.static final CommandAsynchronously rewrites the append-only file to disk.static final CommandAsynchronously saves the database(s) to disk.static final CommandCounts the number of set bits (population counting) in a string.static final CommandPerforms arbitrary bitfield integer operations on strings.static final CommandPerforms arbitrary read-only bitfield integer operations on strings.static final CommandPerforms bitwise operations on multiple strings, and stores the result.static final CommandFinds the first set (1) or clear (0) bit in a string.static final CommandPops an element from a list, pushes it to another list and returns it.static final CommandPops the first element from one of multiple lists.static final CommandRemoves and returns the first element in a list.static final CommandRemoves and returns the last element in a list.static final CommandDeprecated.static final CommandRemoves and returns a member by score from one or more sorted sets.static final CommandRemoves and returns the member with the highest score from one or more sorted sets.static final CommandRemoves and returns the member with the lowest score from one or more sorted sets.static final CommandAdds an item to a Cuckoo Filter.static final CommandAdds an item to a Cuckoo Filter if the item did not exist previously.static final CommandThis command only exists in Redis.static final CommandReturn the number of times an item might be in a Cuckoo Filter.static final CommandThis command only exists in Redis.static final CommandDeletes an item from a Cuckoo Filter.static final CommandChecks whether one or more items exist in a Cuckoo Filter.static final CommandReturns information about a Cuckoo Filter.static final CommandAdds one or more items to a Cuckoo Filter.static final CommandAdds one or more items to a Cuckoo Filter if the items did not exist previously.static final CommandRestores a filter previously saved using SCANDUMP.static final CommandChecks whether one or more items exist in a Cuckoo Filter.static final CommandCreates a new Cuckoo Filter.static final CommandBegins an incremental save of the bloom filter.static final CommandA container for client connection commands.static final CommandA container for Redis Cluster commands.static final CommandIncreases the count of one or more items by increment.static final CommandReturns information about a sketch.static final CommandInitializes a Count-Min Sketch to dimensions specified by user.static final CommandInitializes a Count-Min Sketch to accommodate requested tolerances.static final CommandMerges several sketches into one sketch.static final CommandReturns the count for one or more items in a sketch.static final CommandReturns detailed information about all commands.static final CommandA container for command log commands.static final CommandA container for server configuration commands.static final CommandCopies the value of a key to a new key.static final CommandReturns the number of keys in the database.static final CommandA container for debugging commands.static final CommandDecrements the integer value of a key by one.static final CommandDecrements a number from the integer value of a key.static final CommandDeletes one or more keys.static final CommandConditionally removes the specified key based on value or digest comparison.static final CommandDelete key if value matches string.static final CommandReturns the XXH3 hash of a string value.static final CommandDiscards a transaction.static final CommandReturns a serialized representation of the value stored at a key.static final CommandReturns the given string.static final CommandExecutes a server-side Lua script.static final CommandExecutes a read-only server-side Lua script.static final CommandExecutes a server-side Lua script by SHA1 digest.static final CommandExecutes a read-only server-side Lua script by SHA1 digest.static final CommandExecutes all commands in a transaction.static final CommandDetermines whether one or more keys exist.static final CommandSets the expiration time of a key in seconds.static final CommandSets the expiration time of a key to a Unix timestamp.static final CommandReturns the expiration time of a key as a Unix timestamp.static final CommandStarts a coordinated failover from a server to one of its replicas.static final CommandInvokes a function.static final CommandInvokes a read-only function.static final CommandRemoves all keys from all databases.static final CommandRemove all keys from the current database.static final CommandAdds an alias to the index.static final CommandDeletes an alias from the index.static final CommandAdds a new field to the index.static final CommandCreates an index with the given spec.static final CommandThis command only exists in Redis.static final CommandDeletes the index.static final CommandReturns a list of all existing indexes.static final CommandThis command only exists in Redis.static final CommandRun a search query on an index and perform aggregate transformations on the results.static final CommandAdds an alias to the index.static final CommandDeletes an alias from the index.static final CommandAdds or updates an alias to the index.static final CommandAdds a new field to the index.static final CommandThis command only exists in Redis.static final CommandCreates an index with the given spec.static final CommandThis command only exists in Redis.static final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandThis command only exists in Redis.static final CommandAdds terms to a dictionary.static final CommandDeletes terms from a dictionary.static final CommandDumps all terms in the given dictionary.static final CommandThis command only exists in Redis.static final CommandDeletes the index.static final CommandReturns the execution plan for a complex query.static final CommandReturns the execution plan for a complex query.static final CommandThis command only exists in Redis.static final CommandPerforms hybrid search combining text search and vector similarity search.static final CommandReturns information and statistics on the index.static final CommandThis command only exists in Redis.static final CommandPerforms a `FT.SEARCH` or `FT.AGGREGATE` command and collects performance information.static final CommandThis command only exists in Redis.static final CommandSearches the index with a textual query, returning either documents or just ids.static final CommandPerforms spelling correction on a query, returning suggestions for misspelled terms.static final CommandAdds a suggestion string to an auto-complete suggestion dictionary.static final CommandDeletes a string from a suggestion index.static final CommandGets completion suggestions for a prefix.static final CommandGets the size of an auto-complete suggestion dictionary.static final CommandThis command only exists in Redis.static final CommandDumps the contents of a synonym group.static final CommandCreates or updates a synonym group with additional terms.static final CommandReturns the distinct tags indexed in a Tag field.static final CommandA container for function commands.static final CommandAdds one or more members to a geospatial index.static final CommandReturns the distance between two members of a geospatial index.static final CommandReturns members from a geospatial index as geohash strings.static final CommandReturns the longitude and latitude of members from a geospatial index.static final CommandDeprecated.since Redis 6.2.0, replaced by:GEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSargumentstatic final CommandDeprecated.since Redis 6.2.0, replaced by:GEOSEARCHwith theBYRADIUSargumentstatic final CommandDeprecated.since Redis 6.2.0, replaced by:GEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSandFROMMEMBERargumentsstatic final CommandDeprecated.since Redis 6.2.0, replaced by:GEOSEARCHwith theBYRADIUSandFROMMEMBERargumentsstatic final CommandQueries a geospatial index for members inside an area of a box or a circle.static final CommandQueries a geospatial index for members inside an area of a box or a circle, optionally stores the result.static final CommandReturns the string value of a key.static final CommandReturns a bit value by offset.static final CommandReturns the string value of a key after deleting the key.static final CommandReturns the string value of a key after setting its expiration time.static final CommandReturns a substring of the string stored at a key.static final CommandDeprecated.since Redis 6.2.0, replaced by:SETwith the!GETargumentstatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeletes one or more fields and their values from a hash.static final CommandHandshakes with the Redis server.static final CommandDetermines whether a field exists in a hash.static final CommandSet expiry for hash field using relative time to expire (seconds).static final CommandSet expiry for hash field using an absolute Unix timestamp (seconds).static final CommandReturns the expiration time of a hash field as a Unix timestamp, in seconds.static final CommandReturns the value of a field in a hash.static final CommandReturns all fields and values in a hash.static final CommandReturns the value of a field and deletes it from the hash.static final CommandGet the value of one or more fields of a given hash key, and optionally set their expiration.static final CommandIncrements the integer value of a field in a hash by a number.static final CommandIncrements the floating point value of a field by a number.static final CommandReturns all fields in a hash.static final CommandReturns the number of fields in a hash.static final CommandReturns the values of all fields in a hash.static final CommandDeprecated.since Redis 4.0.0, replaced by:HSETwith multiple field-value pairsstatic final CommandA container for hotkeys tracking commands.static final CommandRemoves the expiration time for each specified field.static final CommandSet expiry for hash field using relative time to expire (milliseconds).static final CommandSet expiry for hash field using an absolute Unix timestamp (milliseconds).static final CommandReturns the expiration time of a hash field as a Unix timestamp, in msec.static final CommandReturns the TTL in milliseconds of a hash field.static final CommandReturns one or more random fields from a hash.static final CommandIterates over fields and values of a hash.static final CommandCreates or modifies the value of a field in a hash.static final CommandSet the value of one or more fields of a given hash key, and optionally set their expiration.static final CommandSets the value of a field in a hash only when the field doesn't exist.static final CommandReturns the length of the value of a field.static final CommandReturns the TTL in seconds of a hash field.static final CommandReturns all values in a hash.static final CommandIncrements the integer value of a key by one.static final CommandIncrements the integer value of a key by a number.static final CommandIncrement the floating point value of a key by a number.static final CommandReturns information and statistics about the server.static final CommandAppend the JSON values into the array at path after the last element in it.static final CommandSearch for the first occurrence of a JSON value in an array.static final CommandInsert the json values into the array at path before the index (shifts to the right).static final CommandReport the length of the JSON array at path in key.static final CommandRemove and return the element at the specified index in the array at path.static final CommandTrim an array so that it contains only the specified inclusive range of elements.static final CommandClear container values (arrays/objects) and set numeric values to 0.static final CommandThis is a container command for debugging related tasks.static final CommandDelete a value.static final CommandDelete a value.static final CommandGet JSON value at path.static final CommandMerge a given JSON value into matching paths.static final CommandReturn the values at path from multiple key arguments.static final CommandSet or update one or more JSON values according to the specified key-path-value triplets.static final CommandIncrement the number value stored at path by number.static final CommandMultiply the number value stored at path by number.static final CommandRaise the number value stored at path to the power of number.static final CommandReturn the keys in the object that's referenced by path.static final CommandReport the number of keys in the JSON object at path in key.static final CommandReturn the JSON in key in Redis serialization protocol specification form.static final CommandSet the JSON value at path in key.static final CommandAppend the json-string values to the string at path.static final CommandReport the length of the JSON String at path in key.static final CommandToggle the boolean value stored at path.static final CommandReport the type of JSON value at path.static final CommandReturns all key names that match a pattern.static final CommandReturns the Unix timestamp of the last successful save to disk.static final CommandA container for latency diagnostics commands.static final CommandFinds the longest common substring.static final CommandReturns an element from a list by its index.static final CommandInserts an element before or after another element in a list.static final CommandReturns the length of a list.static final CommandReturns an element after popping it from one list and pushing it to another.static final CommandReturns multiple elements from a list after removing them.static final CommandDisplays computer art and the Redis version.static final CommandReturns the first elements in a list after removing it.static final CommandReturns the index of matching elements in a list.static final CommandPrepends one or more elements to a list.static final CommandPrepends one or more elements to a list only when the list exists.static final CommandReturns a range of elements from a list.static final CommandRemoves elements from a list.static final CommandSets the value of an element in a list by its index.static final CommandRemoves elements from both ends a list.static final CommandA container for memory diagnostics commands.static final CommandAtomically returns the string values of one or more keys.static final CommandAtomically transfers a key from one Redis instance to another.static final CommandA container for module commands.static final CommandListens for all requests received by the server in real-time.static final CommandMoves a key to another database.static final CommandAtomically creates or modifies the string values of one or more keys.static final CommandAtomically sets multiple string keys with a shared expiration in a single operation.static final CommandAtomically modifies the string values of one or more keys only when all keys don't exist.static final CommandStarts a transaction.static final CommandA container for object introspection commands.static final CommandRemoves the expiration time of a key.static final CommandSets the expiration time of a key in milliseconds.static final CommandSets the expiration time of a key to a Unix milliseconds timestamp.static final CommandReturns the expiration time of a key as a Unix milliseconds timestamp.static final CommandAdds elements to a HyperLogLog key.static final CommandReturns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).static final CommandInternal commands for debugging HyperLogLog values.static final CommandMerges one or more HyperLogLog values into a single key.static final CommandAn internal command for testing HyperLogLog values.static final CommandReturns the server's liveliness response.static final CommandDeprecated.since Redis 2.6.12, replaced by:SETwith thePXargumentstatic final CommandListens for messages published to channels that match one or more patterns.static final CommandAn internal command used in replication.static final CommandReturns the expiration time in milliseconds of a key.static final CommandPosts a message to a channel.static final CommandA container for Pub/Sub commands.static final CommandStops listening to messages published to channels that match one or more patterns.static final CommandDeprecated.since Redis 7.2.0, replaced by: just closing the connectionstatic final CommandReturns a random key name from the database.static final CommandEnables read-only queries for a connection to a Redis Cluster replica node.static final CommandEnables read-write queries for a connection to a Reids Cluster replica node.static final CommandRenames a key and overwrites the destination.static final CommandRenames a key only when the target key name doesn't exist.static final CommandAn internal command for configuring the replication stream.static final CommandConfigures a server as replica of another, or promotes it to a master.static final CommandResets the connection.static final CommandCreates a key from the serialized representation of a value.static final CommandAn internal command for migrating keys in a cluster.static final CommandReturns the replication role.static final CommandReturns and removes the last elements of a list.static final CommandDeprecated.since Redis 6.2.0, replaced by:LMOVEwith theRIGHTandLEFTargumentsstatic final CommandAppends one or more elements to a list.static final CommandAppends an element to a list only when the list exists.static final CommandAdds one or more members to a set.static final CommandSynchronously saves the database(s) to disk.static final CommandIterates over the key names in the database.static final CommandReturns the number of members in a set.static final CommandA container for Lua scripts management commands.static final CommandReturns the difference of multiple sets.static final CommandStores the difference of multiple sets in a key.static final CommandThis command only exists in Redis.static final CommandThis command only exists in Redis.static final CommandThis command only exists in Redis.static final CommandChanges the selected database.static final Commandstatic final CommandSets the string value of a key, ignoring its type.static final CommandSets or clears the bit at offset of the string value.static final CommandDeprecated.since Redis 2.6.12, replaced by:SETwith theEXargumentstatic final CommandDeprecated.since Redis 2.6.12, replaced by:SETwith theNXargumentstatic final CommandOverwrites a part of a string value with another by an offset.static final CommandSynchronously saves the database(s) to disk and shuts down the Redis server.static final CommandReturns the intersect of multiple sets.static final CommandReturns the number of members of the intersect of multiple sets.static final CommandStores the intersect of multiple sets in a key.static final CommandDetermines whether a member belongs to a set.static final CommandDeprecated.since Redis 5.0.0, replaced by:REPLICAOFstatic final CommandA container for slow log commands.static final CommandReturns all members of a set.static final CommandDetermines whether multiple members belong to a set.static final CommandMoves a member from one set to another.static final CommandSorts the elements in a list, a set, or a sorted set, optionally storing the result.static final CommandReturns the sorted elements of a list, a set, or a sorted set.static final CommandReturns one or more random members from a set after removing them.static final CommandPost a message to a shard channel.static final CommandGet one or multiple random members from a set.static final CommandRemoves one or more members from a set.static final CommandIterates over members of a set.static final CommandListens for messages published to shard channels.static final CommandReturns the length of a string value.static final CommandListens for messages published to channels.static final CommandDeprecated.since Redis 2.0.0, replaced by:GETRANGEstatic final CommandReturns the union of multiple sets.static final CommandStores the union of multiple sets in a key.static final CommandStops listening to messages posted to shard channels.static final CommandSwaps two Redis databases.static final CommandAn internal command used in replication.static final CommandAdds one or more observations to a t-digest sketch.static final CommandReturns, for each input rank, an estimation of the value (floating-point) with that rank.static final CommandReturns, for each input reverse rank, an estimation of the value (floating-point) with that reverse rank.static final CommandReturns, for each input value, an estimation of the floating-point fraction of (observations smaller than the given value + half the observations equal to the given value).static final CommandAllocates memory and initializes a new t-digest sketch.static final CommandReturns information and statistics about a t-digest sketch.static final CommandReturns the maximum observation value from a t-digest sketch.static final CommandMerges multiple t-digest sketches into a single sketch.static final CommandReturns the minimum observation value from a t-digest sketch.static final CommandReturns, for each input fraction, an estimation of the value (floating point) that is smaller than the given fraction of observations.static final CommandReturns, for each input value (floating-point), the estimated rank of the value (the number of observations in the sketch that are smaller than the value + half the number of observations that are equal to the value).static final CommandResets a t-digest sketch: empty the sketch and re-initializes it.static final CommandReturns, for each input value (floating-point), the estimated reverse rank of the value (the number of observations in the sketch that are larger than the value + half the number of observations that are equal to the value).static final CommandReturns an estimation of the mean value from the sketch, excluding observation values outside the low and high cutoff quantiles.static final CommandReturns the server time.static final CommandThis command only exists in Redis.static final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandDeprecated.this command no longer exists in the latest Redis releasestatic final CommandThis command only exists in Redis.static final CommandAdds an item to a Top-k sketch.static final CommandReturn the count for one or more items are in a sketch.static final CommandIncreases the count of one or more items by increment.static final CommandReturns information about a sketch.static final CommandReturn the full list of items in Top-K sketch.static final CommandChecks whether one or more items are in a sketch.static final CommandInitializes a Top-K sketch with specified parameters.static final CommandReturns the number of existing keys out of those specified after updating the time they were last accessed.static final CommandTrim the keys that belong to specified slots.static final CommandAppend a sample to a time series.static final CommandUpdate the retention, chunk size, duplicate policy, and labels of an existing time series.static final CommandCreate a new time series.static final CommandCreate a compaction rule.static final CommandDecrease the value of the latest sample.static final CommandDelete all samples between two timestamps for a given time series.static final CommandDelete a compaction rule.static final CommandGet the sample with the highest timestamp from a given time series.static final CommandIncrease the value of the latest sample.static final CommandReturns information and statistics for a time series.static final CommandAppend new samples to one or more time series.static final CommandGet the sample with the highest timestamp from each time series matching a specific filter.static final CommandQuery a range across multiple time series by filters in forward direction.static final CommandQuery a range across multiple time series by filters in reverse direction.static final CommandGet all time series keys matching a filter list.static final CommandQuery a range in forward direction.static final CommandQuery a range in reverse direction.static final CommandReturns the expiration time in seconds of a key.static final CommandDetermines the type of value stored at a key.static final CommandAsynchronously deletes one or more keys.static final CommandStops listening to messages posted to channels.static final CommandForgets about watched keys of a transaction.static final CommandAdd one or more elements to a vector set, or update its vector if it already exists.static final CommandReturn the number of elements in a vector set.static final CommandReturn the dimension of vectors in the vector set.static final CommandReturn the vector associated with an element.static final CommandRetrieve the JSON attributes of elements.static final CommandReturn information about a vector set.static final CommandCheck if an element exists in a vector set.static final CommandReturn the neighbors of an element at each layer in the HNSW graph.static final CommandReturn one or multiple random members from a vector set.static final CommandReturn vector set elements in a lex range.static final CommandRemove an element from a vector set.static final CommandAssociate or remove the JSON attributes of elements.static final CommandReturn elements by vector similarity.static final CommandBlocks until the asynchronous replication of all preceding write commands sent by the connection is completed.static final CommandBlocks until all of the preceding write commands sent by the connection are written to the append-only file of the master and/or replicas.static final CommandMonitors changes to keys to determine the execution of a transaction.static final CommandReturns the number of messages that were successfully acknowledged by the consumer group member of a stream.static final CommandAcknowledges and deletes one or multiple messages for a stream consumer group.static final CommandAppends a new message to a stream.static final CommandChanges, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.static final CommandSets the IDMP configuration parameters for a stream.static final CommandChanges, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.static final CommandReturns the number of messages after removing them from a stream.static final CommandDeletes one or multiple entries from the stream.static final CommandA container for consumer groups commands.static final CommandAn internal command for setting IDMP metadata on an existing stream message.static final CommandA container for stream introspection commands.static final CommandReturn the number of messages in a stream.static final CommandReturns the information and entries from a stream consumer group's pending entries list.static final CommandReturns the messages from a stream within a range of IDs.static final CommandReturns messages from multiple streams with IDs greater than the ones requested.static final CommandReturns new or historical messages from a stream for a consumer in a group.static final CommandReturns the messages from a stream within a range of IDs in reverse order.static final CommandAn internal command for replicating stream values.static final CommandDeletes messages from the beginning of a stream.static final CommandAdds one or more members to a sorted set, or updates their scores.static final CommandReturns the number of members in a sorted set.static final CommandReturns the count of members in a sorted set that have scores within a range.static final CommandReturns the difference between multiple sorted sets.static final CommandStores the difference of multiple sorted sets in a key.static final CommandIncrements the score of a member in a sorted set.static final CommandReturns the intersect of multiple sorted sets.static final CommandReturns the number of members of the intersect of multiple sorted sets.static final CommandStores the intersect of multiple sorted sets in a key.static final CommandReturns the number of members in a sorted set within a lexicographical range.static final CommandReturns the highest- or lowest-scoring members from one or more sorted sets after removing them.static final CommandReturns the score of one or more members in a sorted set.static final CommandReturns the highest-scoring members from a sorted set after removing them.static final CommandReturns the lowest-scoring members from a sorted set after removing them.static final CommandReturns one or more random members from a sorted set.static final CommandReturns members in a sorted set within a range of indexes.static final CommandDeprecated.since Redis 6.2.0, replaced by:ZRANGEwith theBYLEXargumentstatic final CommandDeprecated.since Redis 6.2.0, replaced by:ZRANGEwith theBYSCOREargumentstatic final CommandStores a range of members from sorted set in a key.static final CommandReturns the index of a member in a sorted set ordered by ascending scores.static final CommandRemoves one or more members from a sorted set.static final CommandRemoves members in a sorted set within a lexicographical range.static final CommandRemoves members in a sorted set within a range of indexes.static final CommandRemoves members in a sorted set within a range of scores.static final CommandDeprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVargumentstatic final CommandDeprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVandBYLEXargumentsstatic final CommandDeprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVandBYSCOREargumentsstatic final CommandReturns the index of a member in a sorted set ordered by descending scores.static final CommandIterates over members and scores of a sorted set.static final CommandReturns the score of a member in a sorted set.static final CommandReturns the union of multiple sorted sets.static final CommandStores the union of multiple sorted sets in a key. -
Method Summary
-
Field Details
-
ACL
-
APPEND
Appends a string to the value of a key. Creates the key if it doesn't exist.- Since:
- Redis 2.0.0
-
ASKING
Signals that a cluster client is following an -ASK redirect.- Since:
- Redis 3.0.0
-
AUTH
-
BF_ADD
Adds an item to a Bloom Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_CARD
Returns the cardinality of a Bloom filter.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.4
-
BF_DEBUG
This command only exists in Redis.
-
BF_EXISTS
Checks whether an item exists in a Bloom Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_INFO
Returns information about a Bloom Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_INSERT
Adds one or more items to a Bloom Filter. A filter will be created if it does not exist.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_LOADCHUNK
Restores a filter previously saved using SCANDUMP.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_MADD
Adds one or more items to a Bloom Filter. A filter will be created if it does not exist.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_MEXISTS
Checks whether one or more items exist in a Bloom Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_RESERVE
Creates a new Bloom Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BF_SCANDUMP
Begins an incremental save of the bloom filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
BGREWRITEAOF
Asynchronously rewrites the append-only file to disk.- Since:
- Redis 1.0.0
-
BGSAVE
-
BITCOUNT
Counts the number of set bits (population counting) in a string.- Since:
- Redis 2.6.0
-
BITFIELD
Performs arbitrary bitfield integer operations on strings.- Since:
- Redis 3.2.0
-
BITFIELD_RO
Performs arbitrary read-only bitfield integer operations on strings.- Since:
- Redis 6.0.0
-
BITOP
Performs bitwise operations on multiple strings, and stores the result.- Since:
- Redis 2.6.0
-
BITPOS
Finds the first set (1) or clear (0) bit in a string.- Since:
- Redis 2.8.7
-
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.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 2.0.0
-
BRPOPLPUSH
Deprecated.since Redis 6.2.0, replaced by:BLMOVEwith theRIGHTandLEFTargumentsPops 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.- Since:
- Redis 2.2.0
-
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.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 5.0.0
-
CF_ADD
Adds an item to a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_ADDNX
Adds an item to a Cuckoo Filter if the item did not exist previously.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_COMPACT
This command only exists in Redis.
-
CF_COUNT
Return the number of times an item might be in a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_DEBUG
This command only exists in Redis.
-
CF_DEL
Deletes an item from a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_EXISTS
Checks whether one or more items exist in a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_INFO
Returns information about a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_INSERT
Adds one or more items to a Cuckoo Filter. A filter will be created if it does not exist.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_INSERTNX
Adds one or more items to a Cuckoo Filter if the items did not exist previously. A filter will be created if it does not exist.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_LOADCHUNK
Restores a filter previously saved using SCANDUMP.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_MEXISTS
Checks whether one or more items exist in a Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_RESERVE
Creates a new Cuckoo Filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CF_SCANDUMP
Begins an incremental save of the bloom filter.This command only exists in Redis.
- Since:
- Redis Bloom 1.0.0
-
CLIENT
-
CLUSTER
-
CMS_INCRBY
Increases the count of one or more items by increment.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
CMS_INFO
Returns information about a sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
CMS_INITBYDIM
Initializes a Count-Min Sketch to dimensions specified by user.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
CMS_INITBYPROB
Initializes a Count-Min Sketch to accommodate requested tolerances.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
CMS_MERGE
Merges several sketches into one sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
CMS_QUERY
Returns the count for one or more items in a sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
COMMAND
-
COMMANDLOG
A container for command log commands.This command only exists in Valkey.
- Since:
- Valkey 8.1.0
-
CONFIG
-
COPY
-
DBSIZE
-
DEBUG
-
DECR
Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.- Since:
- Redis 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.- Since:
- Redis 1.0.0
-
DEL
-
DELEX
Conditionally removes the specified key based on value or digest comparison.This command only exists in Redis.
- Since:
- Redis 8.4.0
-
DELIFEQ
Delete key if value matches string.This command only exists in Valkey.
- Since:
- Valkey 9.0.0
-
DIGEST
Returns the XXH3 hash of a string value.This command only exists in Redis.
- Since:
- Redis 8.4.0
-
DISCARD
-
DUMP
Returns a serialized representation of the value stored at a key.- Since:
- Redis 2.6.0
-
ECHO
-
EVAL
-
EVALSHA
-
EVALSHA_RO
Executes a read-only server-side Lua script by SHA1 digest.- Since:
- Redis 7.0.0
-
EVAL_RO
-
EXEC
-
EXISTS
-
EXPIRE
-
EXPIREAT
Sets the expiration time of a key to a Unix timestamp.- Since:
- Redis 1.2.0
-
EXPIRETIME
Returns the expiration time of a key as a Unix timestamp.- Since:
- Redis 7.0.0
-
FAILOVER
Starts a coordinated failover from a server to one of its replicas.- Since:
- Redis 6.2.0
-
FCALL
-
FCALL_RO
-
FLUSHALL
-
FLUSHDB
-
FT_ADD
This command only exists in Redis.
-
FT_AGGREGATE
Run a search query on an index and perform aggregate transformations on the results.This command only exists in Redis.
- Since:
- Redis Search 1.1.0
-
FT_ALIASADD
Adds an alias to the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_ALIASDEL
Deletes an alias from the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_ALIASUPDATE
Adds or updates an alias to the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_ALTER
Adds a new field to the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_CONFIG
This command only exists in Redis.
-
FT_CREATE
Creates an index with the given spec.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_CURSOR
This command only exists in Redis.
-
FT_DEBUG
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
FT_DEL
This command only exists in Redis.
-
FT_DICTADD
Adds terms to a dictionary.This command only exists in Redis.
- Since:
- Redis Search 1.4.0
-
FT_DICTDEL
Deletes terms from a dictionary.This command only exists in Redis.
- Since:
- Redis Search 1.4.0
-
FT_DICTDUMP
Dumps all terms in the given dictionary.This command only exists in Redis.
- Since:
- Redis Search 1.4.0
-
FT_DROP
This command only exists in Redis.
-
FT_DROPINDEX
Deletes the index.This command only exists in Redis.
- Since:
- Redis Search 2.0.0
-
FT_EXPLAIN
Returns the execution plan for a complex query.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_EXPLAINCLI
Returns the execution plan for a complex query.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_GET
This command only exists in Redis.
-
FT_HYBRID
Performs hybrid search combining text search and vector similarity search.This command only exists in Redis.
- Since:
- Redis Search 8.4.4
-
FT_INFO
Returns information and statistics on the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_MGET
This command only exists in Redis.
-
FT_PROFILE
Performs a `FT.SEARCH` or `FT.AGGREGATE` command and collects performance information.This command only exists in Redis.
- Since:
- Redis Search 2.2.0
-
FT_SAFEADD
This command only exists in Redis.
-
FT_SEARCH
Searches the index with a textual query, returning either documents or just ids.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_SPELLCHECK
Performs spelling correction on a query, returning suggestions for misspelled terms.This command only exists in Redis.
- Since:
- Redis Search 1.4.0
-
FT_SUGADD
Adds a suggestion string to an auto-complete suggestion dictionary.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_SUGDEL
Deletes a string from a suggestion index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_SUGGET
Gets completion suggestions for a prefix.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_SUGLEN
Gets the size of an auto-complete suggestion dictionary.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT_SYNADD
This command only exists in Redis.
-
FT_SYNDUMP
Dumps the contents of a synonym group.This command only exists in Redis.
- Since:
- Redis Search 1.2.0
-
FT_SYNUPDATE
Creates or updates a synonym group with additional terms.This command only exists in Redis.
- Since:
- Redis Search 1.2.0
-
FT_TAGVALS
Returns the distinct tags indexed in a Tag field.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT__ALIASADDIFNX
Adds an alias to the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT__ALIASDELIFX
Deletes an alias from the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT__ALTERIFNX
Adds a new field to the index.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT__CREATEIFNX
Creates an index with the given spec.This command only exists in Redis.
- Since:
- Redis Search 1.0.0
-
FT__DROPIFX
This command only exists in Redis.
-
FT__DROPINDEXIFX
Deletes the index.This command only exists in Redis.
- Since:
- Redis Search 2.0.0
-
FT__LIST
Returns a list of all existing indexes.This command only exists in Redis.
- Since:
- Redis Search 2.0.0
-
FUNCTION
-
GEOADD
Adds one or more members to a geospatial index. The key is created if it doesn't exist.- Since:
- Redis 3.2.0
-
GEODIST
Returns the distance between two members of a geospatial index.- Since:
- Redis 3.2.0
-
GEOHASH
Returns members from a geospatial index as geohash strings.- Since:
- Redis 3.2.0
-
GEOPOS
Returns the longitude and latitude of members from a geospatial index.- Since:
- Redis 3.2.0
-
GEORADIUS
Deprecated.since Redis 6.2.0, replaced by:GEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSargumentQueries a geospatial index for members within a distance from a coordinate, optionally stores the result.- Since:
- Redis 3.2.0
-
GEORADIUSBYMEMBER
Deprecated.since Redis 6.2.0, replaced by:GEOSEARCHandGEOSEARCHSTOREwith theBYRADIUSandFROMMEMBERargumentsQueries a geospatial index for members within a distance from a member, optionally stores the result.- Since:
- Redis 3.2.0
-
GEORADIUSBYMEMBER_RO
Deprecated.since Redis 6.2.0, replaced by:GEOSEARCHwith theBYRADIUSandFROMMEMBERargumentsReturns members from a geospatial index that are within a distance from a member.- Since:
- Redis 3.2.10
-
GEORADIUS_RO
Deprecated.since Redis 6.2.0, replaced by:GEOSEARCHwith theBYRADIUSargumentReturns members from a geospatial index that are within a distance from a coordinate.- Since:
- Redis 3.2.10
-
GEOSEARCH
Queries a geospatial index for members inside an area of a box or a circle.- Since:
- Redis 6.2.0
-
GEOSEARCHSTORE
Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result.- Since:
- Redis 6.2.0
-
GET
-
GETBIT
-
GETDEL
Returns the string value of a key after deleting the key.- Since:
- Redis 6.2.0
-
GETEX
Returns the string value of a key after setting its expiration time.- Since:
- Redis 6.2.0
-
GETRANGE
-
GETSET
Deprecated.since Redis 6.2.0, replaced by:SETwith the!GETargumentReturns the previous string value of a key after setting it to a new value.- Since:
- Redis 1.0.0
-
GRAPH_BULK
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_CONFIG
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_DEBUG
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_DELETE
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_EXPLAIN
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_LIST
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_PROFILE
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_QUERY
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_RO_QUERY
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
GRAPH_SLOWLOG
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
HDEL
Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain.- Since:
- Redis 2.0.0
-
HELLO
-
HEXISTS
-
HEXPIRE
Set expiry for hash field using relative time to expire (seconds).- Since:
- Redis 7.4.0
-
HEXPIREAT
Set expiry for hash field using an absolute Unix timestamp (seconds).- Since:
- Redis 7.4.0
-
HEXPIRETIME
Returns the expiration time of a hash field as a Unix timestamp, in seconds.- Since:
- Redis 7.4.0
-
HGET
-
HGETALL
-
HGETDEL
Returns the value of a field and deletes it from the hash.This command only exists in Redis.
- Since:
- Redis 8.0.0
-
HGETEX
Get the value of one or more fields of a given hash key, and optionally set their expiration.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 2.6.0
-
HKEYS
-
HLEN
-
HMGET
-
HMSET
Deprecated.since Redis 4.0.0, replaced by:HSETwith multiple field-value pairsSets the values of multiple fields.- Since:
- Redis 2.0.0
-
HOTKEYS
A container for hotkeys tracking commands.This command only exists in Redis.
- Since:
- Redis 8.6.0
-
HPERSIST
Removes the expiration time for each specified field.- Since:
- Redis 7.4.0
-
HPEXPIRE
Set expiry for hash field using relative time to expire (milliseconds).- Since:
- Redis 7.4.0
-
HPEXPIREAT
Set expiry for hash field using an absolute Unix timestamp (milliseconds).- Since:
- Redis 7.4.0
-
HPEXPIRETIME
Returns the expiration time of a hash field as a Unix timestamp, in msec.- Since:
- Redis 7.4.0
-
HPTTL
-
HRANDFIELD
-
HSCAN
-
HSET
-
HSETEX
Set the value of one or more fields of a given hash key, and optionally set their expiration.- Since:
- Redis 8.0.0
-
HSETNX
Sets the value of a field in a hash only when the field doesn't exist.- Since:
- Redis 2.0.0
-
HSTRLEN
-
HTTL
-
HVALS
-
INCR
Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 2.6.0
-
INFO
-
JSON_ARRAPPEND
Append the JSON values into the array at path after the last element in it.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_ARRINDEX
Search for the first occurrence of a JSON value in an array.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_ARRINSERT
Insert the json values into the array at path before the index (shifts to the right).This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_ARRLEN
Report the length of the JSON array at path in key.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_ARRPOP
Remove and return the element at the specified index in the array at path.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_ARRTRIM
Trim an array so that it contains only the specified inclusive range of elements.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_CLEAR
Clear container values (arrays/objects) and set numeric values to 0.This command only exists in Redis.
- Since:
- Redis ReJSON 2.0.0
-
JSON_DEBUG
This is a container command for debugging related tasks.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_DEL
Delete a value.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_FORGET
Delete a value.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_GET
Get JSON value at path.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_MERGE
Merge a given JSON value into matching paths. Consequently, JSON values at matching paths are updated, deleted, or expanded with new children.This command only exists in Redis.
- Since:
- Redis ReJSON 2.6.0
-
JSON_MGET
Return the values at path from multiple key arguments.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_MSET
Set or update one or more JSON values according to the specified key-path-value triplets.This command only exists in Redis.
- Since:
- Redis ReJSON 2.6.0
-
JSON_NUMINCRBY
Increment the number value stored at path by number.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_NUMMULTBY
Multiply the number value stored at path by number.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_NUMPOWBY
Raise the number value stored at path to the power of number.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_OBJKEYS
Return the keys in the object that's referenced by path.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_OBJLEN
Report the number of keys in the JSON object at path in key.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_RESP
Return the JSON in key in Redis serialization protocol specification form.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_SET
Set the JSON value at path in key.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_STRAPPEND
Append the json-string values to the string at path.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_STRLEN
Report the length of the JSON String at path in key.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
JSON_TOGGLE
Toggle the boolean value stored at path.This command only exists in Redis.
- Since:
- Redis ReJSON 2.0.0
-
JSON_TYPE
Report the type of JSON value at path.This command only exists in Redis.
- Since:
- Redis ReJSON 1.0.0
-
KEYS
-
LASTSAVE
Returns the Unix timestamp of the last successful save to disk.- Since:
- Redis 1.0.0
-
LATENCY
-
LCS
-
LINDEX
-
LINSERT
Inserts an element before or after another element in a list.- Since:
- Redis 2.2.0
-
LLEN
-
LMOVE
Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved.- Since:
- Redis 6.2.0
-
LMPOP
Returns multiple elements from a list after removing them. Deletes the list if the last element was popped.- Since:
- Redis 7.0.0
-
LOLWUT
-
LPOP
Returns the first elements in a list after removing it. Deletes the list if the last element was popped.- Since:
- Redis 1.0.0
-
LPOS
-
LPUSH
Prepends one or more elements to a list. Creates the key if it doesn't exist.- Since:
- Redis 1.0.0
-
LPUSHX
Prepends one or more elements to a list only when the list exists.- Since:
- Redis 2.2.0
-
LRANGE
-
LREM
Removes elements from a list. Deletes the list if the last element was removed.- Since:
- Redis 1.0.0
-
LSET
-
LTRIM
Removes elements from both ends a list. Deletes the list if all elements were trimmed.- Since:
- Redis 1.0.0
-
MEMORY
-
MGET
Atomically returns the string values of one or more keys.- Since:
- Redis 1.0.0
-
MIGRATE
Atomically transfers a key from one Redis instance to another.- Since:
- Redis 2.6.0
-
MODULE
-
MONITOR
Listens for all requests received by the server in real-time.- Since:
- Redis 1.0.0
-
MOVE
-
MSET
Atomically creates or modifies the string values of one or more keys.- Since:
- Redis 1.0.1
-
MSETEX
Atomically sets multiple string keys with a shared expiration in a single operation. Supports flexible argument parsing where condition and expiration flags can appear in any order.This command only exists in Redis.
- Since:
- Redis 8.4.0
-
MSETNX
Atomically modifies the string values of one or more keys only when all keys don't exist.- Since:
- Redis 1.0.1
-
MULTI
-
OBJECT
-
PERSIST
-
PEXPIRE
-
PEXPIREAT
Sets the expiration time of a key to a Unix milliseconds timestamp.- Since:
- Redis 2.6.0
-
PEXPIRETIME
Returns the expiration time of a key as a Unix milliseconds timestamp.- Since:
- Redis 7.0.0
-
PFADD
Adds elements to a HyperLogLog key. Creates the key if it doesn't exist.- Since:
- Redis 2.8.9
-
PFCOUNT
Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s).- Since:
- Redis 2.8.9
-
PFDEBUG
-
PFMERGE
Merges one or more HyperLogLog values into a single key.- Since:
- Redis 2.8.9
-
PFSELFTEST
An internal command for testing HyperLogLog values.- Since:
- Redis 2.8.9
-
PING
-
PSETEX
Deprecated.since Redis 2.6.12, replaced by:SETwith thePXargumentSets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist.- Since:
- Redis 2.6.0
-
PSUBSCRIBE
Listens for messages published to channels that match one or more patterns.- Since:
- Redis 2.0.0
-
PSYNC
-
PTTL
-
PUBLISH
-
PUBSUB
-
PUNSUBSCRIBE
Stops listening to messages published to channels that match one or more patterns.- Since:
- Redis 2.0.0
-
QUIT
Deprecated.since Redis 7.2.0, replaced by: just closing the connectionCloses the connection.- Since:
- Redis 1.0.0
-
RANDOMKEY
-
READONLY
Enables read-only queries for a connection to a Redis Cluster replica node.- Since:
- Redis 3.0.0
-
READWRITE
Enables read-write queries for a connection to a Reids Cluster replica node.- Since:
- Redis 3.0.0
-
RENAME
-
RENAMENX
Renames a key only when the target key name doesn't exist.- Since:
- Redis 1.0.0
-
REPLCONF
An internal command for configuring the replication stream.- Since:
- Redis 3.0.0
-
REPLICAOF
Configures a server as replica of another, or promotes it to a master.- Since:
- Redis 5.0.0
-
RESET
-
RESTORE
Creates a key from the serialized representation of a value.- Since:
- Redis 2.6.0
-
RESTORE_ASKING
An internal command for migrating keys in a cluster.- Since:
- Redis 3.0.0
-
ROLE
-
RPOP
Returns and removes the last elements of a list. Deletes the list if the last element was popped.- Since:
- Redis 1.0.0
-
RPOPLPUSH
Deprecated.since Redis 6.2.0, replaced by:LMOVEwith theRIGHTandLEFTargumentsReturns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped.- Since:
- Redis 1.2.0
-
RPUSH
Appends one or more elements to a list. Creates the key if it doesn't exist.- Since:
- Redis 1.0.0
-
RPUSHX
Appends an element to a list only when the list exists.- Since:
- Redis 2.2.0
-
SADD
Adds one or more members to a set. Creates the key if it doesn't exist.- Since:
- Redis 1.0.0
-
SAVE
-
SCAN
-
SCARD
-
SCRIPT
-
SDIFF
-
SDIFFSTORE
-
SEARCH_CLUSTERINFO
This command only exists in Redis.
-
SEARCH_CLUSTERREFRESH
This command only exists in Redis.
-
SEARCH_CLUSTERSET
This command only exists in Redis.
-
SELECT
-
SET
Sets the string value of a key, ignoring its type. The key is created if it doesn't exist.- Since:
- Redis 1.0.0
-
SETBIT
Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist.- Since:
- Redis 2.2.0
-
SETEX
Deprecated.since Redis 2.6.12, replaced by:SETwith theEXargumentSets the string value and expiration time of a key. Creates the key if it doesn't exist.- Since:
- Redis 2.0.0
-
SETNX
Deprecated.since Redis 2.6.12, replaced by:SETwith theNXargumentSet the string value of a key only when the key doesn't exist.- Since:
- Redis 1.0.0
-
SETRANGE
Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist.- Since:
- Redis 2.2.0
-
SHUTDOWN
Synchronously saves the database(s) to disk and shuts down the Redis server.- Since:
- Redis 1.0.0
-
SINTER
-
SINTERCARD
Returns the number of members of the intersect of multiple sets.- Since:
- Redis 7.0.0
-
SINTERSTORE
-
SISMEMBER
-
SLAVEOF
Deprecated.since Redis 5.0.0, replaced by:REPLICAOFSets a Redis server as a replica of another, or promotes it to being a master.- Since:
- Redis 1.0.0
-
SLOWLOG
-
SMEMBERS
-
SMISMEMBER
Determines whether multiple members belong to a set.- Since:
- Redis 6.2.0
-
SMOVE
-
SORT
Sorts the elements in a list, a set, or a sorted set, optionally storing the result.- Since:
- Redis 1.0.0
-
SORT_RO
Returns the sorted elements of a list, a set, or a sorted set.- Since:
- Redis 7.0.0
-
SPOP
Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.- Since:
- Redis 1.0.0
-
SPUBLISH
-
SRANDMEMBER
-
SREM
Removes one or more members from a set. Deletes the set if the last member was removed.- Since:
- Redis 1.0.0
-
SSCAN
-
SSUBSCRIBE
Listens for messages published to shard channels.- Since:
- Redis 7.0.0
-
STRLEN
-
SUBSCRIBE
-
SUBSTR
Deprecated.since Redis 2.0.0, replaced by:GETRANGEReturns a substring from a string value.- Since:
- Redis 1.0.0
-
SUNION
-
SUNIONSTORE
-
SUNSUBSCRIBE
Stops listening to messages posted to shard channels.- Since:
- Redis 7.0.0
-
SWAPDB
-
SYNC
-
TDIGEST_ADD
Adds one or more observations to a t-digest sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_BYRANK
Returns, for each input rank, an estimation of the value (floating-point) with that rank.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_BYREVRANK
Returns, for each input reverse rank, an estimation of the value (floating-point) with that reverse rank.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_CDF
Returns, for each input value, an estimation of the floating-point fraction of (observations smaller than the given value + half the observations equal to the given value). Multiple fractions can be retrieved in a single call.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_CREATE
Allocates memory and initializes a new t-digest sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_INFO
Returns information and statistics about a t-digest sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_MAX
Returns the maximum observation value from a t-digest sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_MERGE
Merges multiple t-digest sketches into a single sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_MIN
Returns the minimum observation value from a t-digest sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_QUANTILE
Returns, for each input fraction, an estimation of the value (floating point) that is smaller than the given fraction of observations.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_RANK
Returns, for each input value (floating-point), the estimated rank of the value (the number of observations in the sketch that are smaller than the value + half the number of observations that are equal to the value).This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_RESET
Resets a t-digest sketch: empty the sketch and re-initializes it.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_REVRANK
Returns, for each input value (floating-point), the estimated reverse rank of the value (the number of observations in the sketch that are larger than the value + half the number of observations that are equal to the value).This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TDIGEST_TRIMMED_MEAN
Returns an estimation of the mean value from the sketch, excluding observation values outside the low and high cutoff quantiles.This command only exists in Redis.
- Since:
- Redis Bloom 2.4.0
-
TIME
-
TIMESERIES_CLUSTERSET
This command only exists in Redis.
-
TIMESERIES_CLUSTERSETFROMSHARD
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
TIMESERIES_HELLO
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
TIMESERIES_INFOCLUSTER
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
TIMESERIES_INNERCOMMUNICATION
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
TIMESERIES_NETWORKTEST
Deprecated.this command no longer exists in the latest Redis releaseThis command only exists in Redis.
-
TIMESERIES_REFRESHCLUSTER
This command only exists in Redis.
-
TOPK_ADD
Adds an item to a Top-k sketch. Multiple items can be added at the same time.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_COUNT
Return the count for one or more items are in a sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_INCRBY
Increases the count of one or more items by increment.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_INFO
Returns information about a sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_LIST
Return the full list of items in Top-K sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_QUERY
Checks whether one or more items are in a sketch.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOPK_RESERVE
Initializes a Top-K sketch with specified parameters.This command only exists in Redis.
- Since:
- Redis Bloom 2.0.0
-
TOUCH
Returns the number of existing keys out of those specified after updating the time they were last accessed.- Since:
- Redis 3.2.1
-
TRIMSLOTS
Trim the keys that belong to specified slots.This command only exists in Redis.
- Since:
- Redis 8.4.0
-
TS_ADD
Append a sample to a time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_ALTER
Update the retention, chunk size, duplicate policy, and labels of an existing time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_CREATE
Create a new time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_CREATERULE
Create a compaction rule.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_DECRBY
Decrease the value of the latest sample.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_DEL
Delete all samples between two timestamps for a given time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.6.0
-
TS_DELETERULE
Delete a compaction rule.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_GET
Get the sample with the highest timestamp from a given time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_INCRBY
Increase the value of the latest sample.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_INFO
Returns information and statistics for a time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_MADD
Append new samples to one or more time series.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_MGET
Get the sample with the highest timestamp from each time series matching a specific filter.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_MRANGE
Query a range across multiple time series by filters in forward direction.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_MREVRANGE
Query a range across multiple time series by filters in reverse direction.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.4.0
-
TS_QUERYINDEX
Get all time series keys matching a filter list.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_RANGE
Query a range in forward direction.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.0.0
-
TS_REVRANGE
Query a range in reverse direction.This command only exists in Redis.
- Since:
- Redis TimeSeries 1.4.0
-
TTL
-
TYPE
-
UNLINK
-
UNSUBSCRIBE
-
UNWATCH
-
VADD
Add one or more elements to a vector set, or update its vector if it already exists.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VCARD
Return the number of elements in a vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VDIM
Return the dimension of vectors in the vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VEMB
Return the vector associated with an element.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VGETATTR
Retrieve the JSON attributes of elements.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VINFO
Return information about a vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VISMEMBER
Check if an element exists in a vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.2.0
-
VLINKS
Return the neighbors of an element at each layer in the HNSW graph.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VRANDMEMBER
Return one or multiple random members from a vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VRANGE
Return vector set elements in a lex range.This command only exists in Redis.
- Since:
- Redis VectorSet 8.4.0
-
VREM
Remove an element from a vector set.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VSETATTR
Associate or remove the JSON attributes of elements.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
VSIM
Return elements by vector similarity.This command only exists in Redis.
- Since:
- Redis VectorSet 8.0.0
-
WAIT
Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.- Since:
- Redis 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.- Since:
- Redis 7.2.0
-
WATCH
Monitors changes to keys to determine the execution of a transaction.- Since:
- Redis 2.2.0
-
XACK
Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.- Since:
- Redis 5.0.0
-
XACKDEL
Acknowledges and deletes one or multiple messages for a stream consumer group.This command only exists in Redis.
- Since:
- Redis 8.2.0
-
XADD
Appends a new message to a stream. Creates the key if it doesn't exist.- Since:
- Redis 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.- Since:
- Redis 6.2.0
-
XCFGSET
Sets the IDMP configuration parameters for a stream.This command only exists in Redis.
- Since:
- Redis 8.6.0
-
XCLAIM
Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.- Since:
- Redis 5.0.0
-
XDEL
Returns the number of messages after removing them from a stream.- Since:
- Redis 5.0.0
-
XDELEX
Deletes one or multiple entries from the stream.This command only exists in Redis.
- Since:
- Redis 8.2.0
-
XGROUP
-
XIDMPRECORD
An internal command for setting IDMP metadata on an existing stream message.This command only exists in Redis.
- Since:
- Redis 8.6.2
-
XINFO
-
XLEN
-
XPENDING
Returns the information and entries from a stream consumer group's pending entries list.- Since:
- Redis 5.0.0
-
XRANGE
Returns the messages from a stream within a range of IDs.- Since:
- Redis 5.0.0
-
XREAD
Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.- Since:
- Redis 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.- Since:
- Redis 5.0.0
-
XREVRANGE
Returns the messages from a stream within a range of IDs in reverse order.- Since:
- Redis 5.0.0
-
XSETID
-
XTRIM
-
ZADD
Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist.- Since:
- Redis 1.2.0
-
ZCARD
-
ZCOUNT
Returns the count of members in a sorted set that have scores within a range.- Since:
- Redis 2.0.0
-
ZDIFF
-
ZDIFFSTORE
Stores the difference of multiple sorted sets in a key.- Since:
- Redis 6.2.0
-
ZINCRBY
-
ZINTER
-
ZINTERCARD
Returns the number of members of the intersect of multiple sorted sets.- Since:
- Redis 7.0.0
-
ZINTERSTORE
Stores the intersect of multiple sorted sets in a key.- Since:
- Redis 2.0.0
-
ZLEXCOUNT
Returns the number of members in a sorted set within a lexicographical range.- Since:
- Redis 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.- Since:
- Redis 7.0.0
-
ZMSCORE
Returns the score of one or more members in a sorted set.- Since:
- Redis 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.- Since:
- Redis 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.- Since:
- Redis 5.0.0
-
ZRANDMEMBER
Returns one or more random members from a sorted set.- Since:
- Redis 6.2.0
-
ZRANGE
Returns members in a sorted set within a range of indexes.- Since:
- Redis 1.2.0
-
ZRANGEBYLEX
Deprecated.since Redis 6.2.0, replaced by:ZRANGEwith theBYLEXargumentReturns members in a sorted set within a lexicographical range.- Since:
- Redis 2.8.9
-
ZRANGEBYSCORE
Deprecated.since Redis 6.2.0, replaced by:ZRANGEwith theBYSCOREargumentReturns members in a sorted set within a range of scores.- Since:
- Redis 1.0.5
-
ZRANGESTORE
Stores a range of members from sorted set in a key.- Since:
- Redis 6.2.0
-
ZRANK
Returns the index of a member in a sorted set ordered by ascending scores.- Since:
- Redis 2.0.0
-
ZREM
Removes one or more members from a sorted set. Deletes the sorted set if all members were removed.- Since:
- Redis 1.2.0
-
ZREMRANGEBYLEX
Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed.- Since:
- Redis 2.8.9
-
ZREMRANGEBYRANK
Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed.- Since:
- Redis 2.0.0
-
ZREMRANGEBYSCORE
Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed.- Since:
- Redis 1.2.0
-
ZREVRANGE
Deprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVargumentReturns members in a sorted set within a range of indexes in reverse order.- Since:
- Redis 1.2.0
-
ZREVRANGEBYLEX
Deprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVandBYLEXargumentsReturns members in a sorted set within a lexicographical range in reverse order.- Since:
- Redis 2.8.9
-
ZREVRANGEBYSCORE
Deprecated.since Redis 6.2.0, replaced by:ZRANGEwith theREVandBYSCOREargumentsReturns members in a sorted set within a range of scores in reverse order.- Since:
- Redis 2.2.0
-
ZREVRANK
Returns the index of a member in a sorted set ordered by descending scores.- Since:
- Redis 2.0.0
-
ZSCAN
-
ZSCORE
-
ZUNION
-
ZUNIONSTORE
Stores the union of multiple sorted sets in a key.- Since:
- Redis 2.0.0
-
SENTINEL
-
-
Method Details
-
create
Generic command generator for extensions.To avoid inconsistent behavior, when
commandis one of the known commands for which a static instance exists, the static instance is returned.- Parameters:
command- command name- Returns:
- the cacheable immutable command instance
-
BLMOVEwith theRIGHTandLEFTarguments