Net::Async::Redis::Commands - mixin that defines the Redis commands available
This is autogenerated from the list of commands available in https://redis.io/commands.
It is intended to be loaded by Net::Async::Redis to provide methods for each available Redis command.
This maps the argument index for the key information in each command.
key
Count set bits in a string.
[start end [BYTE|BIT]]
https://redis.io/commands/bitcount
Perform arbitrary bitfield integer operations on strings.
[GET encoding offset]
[SET encoding offset value]
[INCRBY encoding offset increment]
[OVERFLOW WRAP|SAT|FAIL]
https://redis.io/commands/bitfield
Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD.
GET encoding offset
https://redis.io/commands/bitfield-ro
Perform bitwise operations between strings.
operation
destkey
key [key ...]
https://redis.io/commands/bitop
Find first bit set or clear in a string.
bit
[start [end [BYTE|BIT]]]
https://redis.io/commands/bitpos
Returns the bit value at offset in the string value stored at key.
offset
https://redis.io/commands/getbit
Sets or clears the bit at offset in the string value stored at key.
value
https://redis.io/commands/setbit
Sent by cluster clients after an -ASK redirect.
https://redis.io/commands/asking
Assign new hash slots to receiving node.
slot [slot ...]
https://redis.io/commands/cluster-addslots
start-slot end-slot [start-slot end-slot ...]
https://redis.io/commands/cluster-addslotsrange
Advance the cluster config epoch.
https://redis.io/commands/cluster-bumpepoch
Return the number of failure reports active for a given node.
node-id
https://redis.io/commands/cluster-count-failure-reports
Return the number of local keys in the specified hash slot.
slot
https://redis.io/commands/cluster-countkeysinslot
Set hash slots as unbound in receiving node.
https://redis.io/commands/cluster-delslots
https://redis.io/commands/cluster-delslotsrange
Forces a replica to perform a manual failover of its master.
[FORCE|TAKEOVER]
https://redis.io/commands/cluster-failover
Delete a node's own slots information.
https://redis.io/commands/cluster-flushslots
Remove a node from the nodes table.
https://redis.io/commands/cluster-forget
Return local key names in the specified hash slot.
count
https://redis.io/commands/cluster-getkeysinslot
Provides info about Redis Cluster node state.
https://redis.io/commands/cluster-info
Returns the hash slot of the specified key.
https://redis.io/commands/cluster-keyslot
Returns a list of all TCP links to and from peer nodes in cluster.
https://redis.io/commands/cluster-links
Force a node cluster to handshake with another node.
ip
port
https://redis.io/commands/cluster-meet
Return the node id.
https://redis.io/commands/cluster-myid
Get Cluster config for the node.
https://redis.io/commands/cluster-nodes
List replica nodes of the specified master node.
https://redis.io/commands/cluster-replicas
Reconfigure a node as a replica of the specified master node.
https://redis.io/commands/cluster-replicate
Reset a Redis Cluster node.
[HARD|SOFT]
https://redis.io/commands/cluster-reset
Forces the node to save cluster state on disk.
https://redis.io/commands/cluster-saveconfig
Set the configuration epoch in a new node.
config-epoch
https://redis.io/commands/cluster-set-config-epoch
Bind a hash slot to a specific node.
IMPORTING node-id|MIGRATING node-id|NODE node-id|STABLE
https://redis.io/commands/cluster-setslot
https://redis.io/commands/cluster-slaves
Get array of Cluster slot to node mappings.
https://redis.io/commands/cluster-slots
Enables read queries for a connection to a cluster replica node.
https://redis.io/commands/readonly
Disables read queries for a connection to a cluster replica node.
https://redis.io/commands/readwrite
Authenticate to the server.
[username]
password
https://redis.io/commands/auth
Instruct the server about tracking or not keys in the next request.
YES|NO
https://redis.io/commands/client-caching
Get the current connection name.
https://redis.io/commands/client-getname
Get tracking notifications redirection client ID if any.
https://redis.io/commands/client-getredir
Returns the client ID for the current connection.
https://redis.io/commands/client-id
Returns information about the current client connection.
https://redis.io/commands/client-info
Kill the connection of a client.
[ip:port]
[ID client-id]
[TYPE NORMAL|MASTER|SLAVE|REPLICA|PUBSUB]
[USER username]
[ADDR ip:port]
[LADDR ip:port]
[SKIPME yes/no]
https://redis.io/commands/client-kill
Get the list of client connections.
[TYPE NORMAL|MASTER|REPLICA|PUBSUB]
[ID client-id [client-id ...]]
https://redis.io/commands/client-list
Set client eviction mode for the current connection.
ON|OFF
https://redis.io/commands/client-no-evict
Stop processing commands from clients for some time.
timeout
[WRITE|ALL]
https://redis.io/commands/client-pause
Instruct the server whether to reply to commands.
ON|OFF|SKIP
https://redis.io/commands/client-reply
Set the current connection name.
connection-name
https://redis.io/commands/client-setname
Enable or disable server assisted client side caching support.
[REDIRECT client-id]
[PREFIX prefix [PREFIX prefix ...]]
[BCAST]
[OPTIN]
[OPTOUT]
[NOLOOP]
https://redis.io/commands/client-tracking
Return information about server assisted client side caching for the current connection.
https://redis.io/commands/client-trackinginfo
Unblock a client blocked in a blocking command from a different connection.
client-id
[TIMEOUT|ERROR]
https://redis.io/commands/client-unblock
Resume processing of clients that were paused.
https://redis.io/commands/client-unpause
Echo the given string.
message
https://redis.io/commands/echo
Handshake with Redis.
[protover [AUTH username password] [SETNAME clientname]]
https://redis.io/commands/hello
Ping the server.
[message]
https://redis.io/commands/ping
Close the connection.
https://redis.io/commands/quit
Reset the connection.
https://redis.io/commands/reset
Change the selected database for the current connection.
index
https://redis.io/commands/select
Copy a key.
source
destination
[DB destination-db]
[REPLACE]
https://redis.io/commands/copy
Delete a key.
https://redis.io/commands/del
Return a serialized version of the value stored at the specified key.
https://redis.io/commands/dump
Determine if a key exists.
https://redis.io/commands/exists
Set a key's time to live in seconds.
seconds
[NX|XX|GT|LT]
https://redis.io/commands/expire
Set the expiration for a key as a UNIX timestamp.
unix-time-seconds
https://redis.io/commands/expireat
Get the expiration Unix timestamp for a key.
https://redis.io/commands/expiretime
Find all keys matching the given pattern.
pattern
https://redis.io/commands/keys
Atomically transfer a key from a Redis instance to another one.
host
key|""
destination-db
[COPY]
[AUTH password]
[AUTH2 username password]
[KEYS key [key ...]]
https://redis.io/commands/migrate
Move a key to another database.
db
https://redis.io/commands/move
Inspect the internal encoding of a Redis object.
https://redis.io/commands/object-encoding
Get the logarithmic access frequency counter of a Redis object.
https://redis.io/commands/object-freq
Get the time since a Redis object was last accessed.
https://redis.io/commands/object-idletime
Get the number of references to the value of the key.
https://redis.io/commands/object-refcount
Remove the expiration from a key.
https://redis.io/commands/persist
Set a key's time to live in milliseconds.
milliseconds
https://redis.io/commands/pexpire
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
unix-time-milliseconds
https://redis.io/commands/pexpireat
Get the expiration Unix timestamp for a key in milliseconds.
https://redis.io/commands/pexpiretime
Get the time to live for a key in milliseconds.
https://redis.io/commands/pttl
Return a random key from the keyspace.
https://redis.io/commands/randomkey
Rename a key.
newkey
https://redis.io/commands/rename
Rename a key, only if the new key does not exist.
https://redis.io/commands/renamenx
Create a key using the provided serialized value, previously obtained using DUMP.
ttl
serialized-value
[ABSTTL]
[IDLETIME seconds]
[FREQ frequency]
https://redis.io/commands/restore
Incrementally iterate the keys space.
cursor
[MATCH pattern]
[COUNT count]
[TYPE type]
https://redis.io/commands/scan
Sort the elements in a list, set or sorted set.
[BY pattern]
[LIMIT offset count]
[GET pattern [GET pattern ...]]
[ASC|DESC]
[ALPHA]
[STORE destination]
https://redis.io/commands/sort
Sort the elements in a list, set or sorted set. Read-only variant of SORT.
https://redis.io/commands/sort-ro
Alters the last access time of a key(s). Returns the number of existing keys specified.
https://redis.io/commands/touch
Get the time to live for a key in seconds.
https://redis.io/commands/ttl
Determine the type stored at key.
https://redis.io/commands/type
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
https://redis.io/commands/unlink
Wait for the synchronous replication of all the write commands sent in the context of the current connection.
numreplicas
https://redis.io/commands/wait
Add one or more geospatial items in the geospatial index represented using a sorted set.
[NX|XX]
[CH]
longitude latitude member [longitude latitude member ...]
https://redis.io/commands/geoadd
Returns the distance between two members of a geospatial index.
member1
member2
[M|KM|FT|MI]
https://redis.io/commands/geodist
Returns members of a geospatial index as standard geohash strings.
member [member ...]
https://redis.io/commands/geohash
Returns longitude and latitude of members of a geospatial index.
https://redis.io/commands/geopos
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point.
longitude
latitude
radius
M|KM|FT|MI
[WITHCOORD]
[WITHDIST]
[WITHHASH]
[COUNT count [ANY]]
[STORE key]
[STOREDIST key]
https://redis.io/commands/georadius
A read-only variant for GEORADIUS.
https://redis.io/commands/georadius-ro
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member.
member
https://redis.io/commands/georadiusbymember
A read-only variant for GEORADIUSBYMEMBER.
https://redis.io/commands/georadiusbymember-ro
Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle.
[FROMMEMBER member]
[FROMLONLAT longitude latitude]
[BYRADIUS radius M|KM|FT|MI]
[BYBOX width height M|KM|FT|MI]
https://redis.io/commands/geosearch
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.
[STOREDIST]
https://redis.io/commands/geosearchstore
Delete one or more hash fields.
field [field ...]
https://redis.io/commands/hdel
Determine if a hash field exists.
field
https://redis.io/commands/hexists
Get the value of a hash field.
https://redis.io/commands/hget
Get all the fields and values in a hash.
https://redis.io/commands/hgetall
Increment the integer value of a hash field by the given number.
increment
https://redis.io/commands/hincrby
Increment the float value of a hash field by the given amount.
https://redis.io/commands/hincrbyfloat
Get all the fields in a hash.
https://redis.io/commands/hkeys
Get the number of fields in a hash.
https://redis.io/commands/hlen
Get the values of all the given hash fields.
https://redis.io/commands/hmget
Set multiple hash fields to multiple values.
field value [field value ...]
https://redis.io/commands/hmset
Get one or multiple random fields from a hash.
[count [WITHVALUES]]
https://redis.io/commands/hrandfield
Incrementally iterate hash fields and associated values.
https://redis.io/commands/hscan
Set the string value of a hash field.
https://redis.io/commands/hset
Set the value of a hash field, only if the field does not exist.
https://redis.io/commands/hsetnx
Get the length of the value of a hash field.
https://redis.io/commands/hstrlen
Get all the values in a hash.
https://redis.io/commands/hvals
Adds the specified elements to the specified HyperLogLog.
[element [element ...]]
https://redis.io/commands/pfadd
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
https://redis.io/commands/pfcount
Internal commands for debugging HyperLogLog values.
https://redis.io/commands/pfdebug
Merge N different HyperLogLogs into a single one.
sourcekey [sourcekey ...]
https://redis.io/commands/pfmerge
An internal command for testing HyperLogLog values.
https://redis.io/commands/pfselftest
Pop an element from a list, push it to another list and return it; or block until one is available.
LEFT|RIGHT
https://redis.io/commands/blmove
Pop elements from a list, or block until one is available.
numkeys
https://redis.io/commands/blmpop
Remove and get the first element in a list, or block until one is available.
https://redis.io/commands/blpop
Remove and get the last element in a list, or block until one is available.
https://redis.io/commands/brpop
https://redis.io/commands/brpoplpush
Get an element from a list by its index.
https://redis.io/commands/lindex
Insert an element before or after another element in a list.
BEFORE|AFTER
pivot
element
https://redis.io/commands/linsert
Get the length of a list.
https://redis.io/commands/llen
Pop an element from a list, push it to another list and return it.
https://redis.io/commands/lmove
Pop elements from a list.
https://redis.io/commands/lmpop
Remove and get the first elements in a list.
[count]
https://redis.io/commands/lpop
Return the index of matching elements on a list.
[RANK rank]
[COUNT num-matches]
[MAXLEN len]
https://redis.io/commands/lpos
Prepend one or multiple elements to a list.
element [element ...]
https://redis.io/commands/lpush
Prepend an element to a list, only if the list exists.
https://redis.io/commands/lpushx
Get a range of elements from a list.
start
stop
https://redis.io/commands/lrange
Remove elements from a list.
https://redis.io/commands/lrem
Set the value of an element in a list by its index.
https://redis.io/commands/lset
Trim a list to the specified range.
https://redis.io/commands/ltrim
Remove and get the last elements in a list.
https://redis.io/commands/rpop
Remove the last element in a list, prepend it to another list and return it.
https://redis.io/commands/rpoplpush
Append one or multiple elements to a list.
https://redis.io/commands/rpush
Append an element to a list, only if the list exists.
https://redis.io/commands/rpushx
Listen for messages published to channels matching the given patterns.
pattern [pattern ...]
https://redis.io/commands/psubscribe
Post a message to a channel.
channel
https://redis.io/commands/publish
List active channels.
[pattern]
https://redis.io/commands/pubsub-channels
Get the count of unique patterns pattern subscriptions.
https://redis.io/commands/pubsub-numpat
Get the count of subscribers for channels.
[channel [channel ...]]
https://redis.io/commands/pubsub-numsub
List active shard channels.
https://redis.io/commands/pubsub-shardchannels
Get the count of subscribers for shard channels.
https://redis.io/commands/pubsub-shardnumsub
Stop listening for messages posted to channels matching the given patterns.
[pattern [pattern ...]]
https://redis.io/commands/punsubscribe
Post a message to a shard channel.
https://redis.io/commands/spublish
Listen for messages published to the given shard channels.
channel [channel ...]
https://redis.io/commands/ssubscribe
Listen for messages published to the given channels.
https://redis.io/commands/subscribe
Stop listening for messages posted to the given shard channels.
https://redis.io/commands/sunsubscribe
Stop listening for messages posted to the given channels.
https://redis.io/commands/unsubscribe
Execute a Lua script server side.
script
[key [key ...]]
[arg [arg ...]]
https://redis.io/commands/eval
Execute a read-only Lua script server side.
arg [arg ...]
https://redis.io/commands/eval-ro
sha1
https://redis.io/commands/evalsha
https://redis.io/commands/evalsha-ro
Invoke a function.
function
https://redis.io/commands/fcall
Invoke a read-only function.
https://redis.io/commands/fcall-ro
Delete a function by name.
library-name
https://redis.io/commands/function-delete
Dump all functions into a serialized binary payload.
https://redis.io/commands/function-dump
Deleting all functions.
[ASYNC|SYNC]
https://redis.io/commands/function-flush
Kill the function currently in execution.
https://redis.io/commands/function-kill
List information about all the functions.
[LIBRARYNAME library-name-pattern]
[WITHCODE]
https://redis.io/commands/function-list
Create a function with the given arguments (name, code, description).
engine-name
[DESCRIPTION library-description]
function-code
https://redis.io/commands/function-load
Restore all the functions on the given payload.
[FLUSH|APPEND|REPLACE]
https://redis.io/commands/function-restore
Return information about the function currently running (name, description, duration).
https://redis.io/commands/function-stats
Set the debug mode for executed scripts.
YES|SYNC|NO
https://redis.io/commands/script-debug
Check existence of scripts in the script cache.
sha1 [sha1 ...]
https://redis.io/commands/script-exists
Remove all the scripts from the script cache.
https://redis.io/commands/script-flush
Kill the script currently in execution.
https://redis.io/commands/script-kill
Load the specified Lua script into the script cache.
https://redis.io/commands/script-load
List the ACL categories or the commands inside a category.
[categoryname]
https://redis.io/commands/acl-cat
Remove the specified ACL users and the associated rules.
username [username ...]
https://redis.io/commands/acl-deluser
Returns whether the user can execute the given command without executing the command.
username
command
https://redis.io/commands/acl-dryrun
Generate a pseudorandom secure password to use for ACL users.
[bits]
https://redis.io/commands/acl-genpass
Get the rules for a specific ACL user.
https://redis.io/commands/acl-getuser
List the current ACL rules in ACL config file format.
https://redis.io/commands/acl-list
Reload the ACLs from the configured ACL file.
https://redis.io/commands/acl-load
List latest events denied because of ACLs in place.
[count|RESET]
https://redis.io/commands/acl-log
Save the current ACL rules in the configured ACL file.
https://redis.io/commands/acl-save
Modify or create the rules for a specific ACL user.
[rule [rule ...]]
https://redis.io/commands/acl-setuser
List the username of all the configured ACL rules.
https://redis.io/commands/acl-users
Return the name of the user associated to the current connection.
https://redis.io/commands/acl-whoami
Asynchronously rewrite the append-only file.
https://redis.io/commands/bgrewriteaof
Asynchronously save the dataset to disk.
[SCHEDULE]
https://redis.io/commands/bgsave
Get array of Redis command details.
https://redis.io/commands/command
Get total number of Redis commands.
https://redis.io/commands/command-count
Get array of specific Redis command documentation.
[command-name [command-name ...]]
https://redis.io/commands/command-docs
Extract keys given a full Redis command.
https://redis.io/commands/command-getkeys
https://redis.io/commands/command-getkeysandflags
Get array of specific Redis command details, or all when no argument is given.
https://redis.io/commands/command-info
Get an array of Redis command names.
[FILTERBY MODULE module-name|ACLCAT category|PATTERN pattern]
https://redis.io/commands/command-list
Get the values of configuration parameters.
parameter [parameter ...]
https://redis.io/commands/config-get
Reset the stats returned by INFO.
https://redis.io/commands/config-resetstat
Rewrite the configuration file with the in memory configuration.
https://redis.io/commands/config-rewrite
Set configuration parameters to the given values.
parameter value [parameter value ...]
https://redis.io/commands/config-set
Return the number of keys in the selected database.
https://redis.io/commands/dbsize
Start a coordinated failover between this server and one of its replicas.
[TO host port [FORCE]]
[ABORT]
[TIMEOUT milliseconds]
https://redis.io/commands/failover
Remove all keys from all databases.
https://redis.io/commands/flushall
Remove all keys from the current database.
https://redis.io/commands/flushdb
Get information and statistics about the server.
[section [section ...]]
https://redis.io/commands/info
Get the UNIX time stamp of the last successful save to disk.
https://redis.io/commands/lastsave
Return a human readable latency analysis report.
https://redis.io/commands/latency-doctor
Return a latency graph for the event.
event
https://redis.io/commands/latency-graph
Return the cumulative distribution of latencies of a subset of commands or all.
[command [command ...]]
https://redis.io/commands/latency-histogram
Return timestamp-latency samples for the event.
https://redis.io/commands/latency-history
Return the latest latency samples for all events.
https://redis.io/commands/latency-latest
Reset latency data for one or more events.
[event [event ...]]
https://redis.io/commands/latency-reset
Display some computer art and the Redis version.
[VERSION version]
https://redis.io/commands/lolwut
Outputs memory problems report.
https://redis.io/commands/memory-doctor
Show allocator internal stats.
https://redis.io/commands/memory-malloc-stats
Ask the allocator to release memory.
https://redis.io/commands/memory-purge
Show memory usage details.
https://redis.io/commands/memory-stats
Estimate the memory usage of a key.
[SAMPLES count]
https://redis.io/commands/memory-usage
List all modules loaded by the server.
https://redis.io/commands/module-list
Load a module.
path
https://redis.io/commands/module-load
Unload a module.
name
https://redis.io/commands/module-unload
Listen for all requests received by the server in real time.
https://redis.io/commands/monitor
Internal command used for replication.
replicationid
https://redis.io/commands/psync
An internal command for configuring the replication stream.
https://redis.io/commands/replconf
Make the server a replica of another instance, or promote it as master.
https://redis.io/commands/replicaof
An internal command for migrating keys in a cluster.
https://redis.io/commands/restore-asking
Return the role of the instance in the context of replication.
https://redis.io/commands/role
Synchronously save the dataset to disk.
https://redis.io/commands/save
Synchronously save the dataset to disk and then shut down the server.
[NOSAVE|SAVE]
[NOW]
[FORCE]
https://redis.io/commands/shutdown
https://redis.io/commands/slaveof
Get the slow log's entries.
https://redis.io/commands/slowlog-get
Get the slow log's length.
https://redis.io/commands/slowlog-len
Clear all entries from the slow log.
https://redis.io/commands/slowlog-reset
Swaps two Redis databases.
index1
index2
https://redis.io/commands/swapdb
https://redis.io/commands/sync
Return the current server time.
https://redis.io/commands/time
Add one or more members to a set.
https://redis.io/commands/sadd
Get the number of members in a set.
https://redis.io/commands/scard
Subtract multiple sets.
https://redis.io/commands/sdiff
Subtract multiple sets and store the resulting set in a key.
https://redis.io/commands/sdiffstore
Intersect multiple sets.
https://redis.io/commands/sinter
Intersect multiple sets and return the cardinality of the result.
[LIMIT limit]
https://redis.io/commands/sintercard
Intersect multiple sets and store the resulting set in a key.
https://redis.io/commands/sinterstore
Determine if a given value is a member of a set.
https://redis.io/commands/sismember
Get all the members in a set.
https://redis.io/commands/smembers
Returns the membership associated with the given elements for a set.
https://redis.io/commands/smismember
Move a member from one set to another.
https://redis.io/commands/smove
Remove and return one or multiple random members from a set.
https://redis.io/commands/spop
Get one or multiple random members from a set.
https://redis.io/commands/srandmember
Remove one or more members from a set.
https://redis.io/commands/srem
Incrementally iterate Set elements.
https://redis.io/commands/sscan
Add multiple sets.
https://redis.io/commands/sunion
Add multiple sets and store the resulting set in a key.
https://redis.io/commands/sunionstore
Remove and return members with scores in a sorted set or block until one is available.
MIN|MAX
https://redis.io/commands/bzmpop
Remove and return the member with the highest score from one or more sorted sets, or block until one is available.
https://redis.io/commands/bzpopmax
Remove and return the member with the lowest score from one or more sorted sets, or block until one is available.
https://redis.io/commands/bzpopmin
Add one or more members to a sorted set, or update its score if it already exists.
[GT|LT]
[INCR]
score member [score member ...]
https://redis.io/commands/zadd
Get the number of members in a sorted set.
https://redis.io/commands/zcard
Count the members in a sorted set with scores within the given values.
min
max
https://redis.io/commands/zcount
Subtract multiple sorted sets.
[WITHSCORES]
https://redis.io/commands/zdiff
Subtract multiple sorted sets and store the resulting sorted set in a new key.
https://redis.io/commands/zdiffstore
Increment the score of a member in a sorted set.
https://redis.io/commands/zincrby
Intersect multiple sorted sets.
[WEIGHTS weight [weight ...]]
[AGGREGATE SUM|MIN|MAX]
https://redis.io/commands/zinter
Intersect multiple sorted sets and return the cardinality of the result.
https://redis.io/commands/zintercard
Intersect multiple sorted sets and store the resulting sorted set in a new key.
https://redis.io/commands/zinterstore
Count the number of members in a sorted set between a given lexicographical range.
https://redis.io/commands/zlexcount
Remove and return members with scores in a sorted set.
https://redis.io/commands/zmpop
Get the score associated with the given members in a sorted set.
https://redis.io/commands/zmscore
Remove and return members with the highest scores in a sorted set.
https://redis.io/commands/zpopmax
Remove and return members with the lowest scores in a sorted set.
https://redis.io/commands/zpopmin
Get one or multiple random elements from a sorted set.
[count [WITHSCORES]]
https://redis.io/commands/zrandmember
Return a range of members in a sorted set.
[BYSCORE|BYLEX]
[REV]
https://redis.io/commands/zrange
Return a range of members in a sorted set, by lexicographical range.
https://redis.io/commands/zrangebylex
Return a range of members in a sorted set, by score.
https://redis.io/commands/zrangebyscore
Store a range of members from sorted set into another key.
dst
src
https://redis.io/commands/zrangestore
Determine the index of a member in a sorted set.
https://redis.io/commands/zrank
Remove one or more members from a sorted set.
https://redis.io/commands/zrem
Remove all members in a sorted set between the given lexicographical range.
https://redis.io/commands/zremrangebylex
Remove all members in a sorted set within the given indexes.
https://redis.io/commands/zremrangebyrank
Remove all members in a sorted set within the given scores.
https://redis.io/commands/zremrangebyscore
Return a range of members in a sorted set, by index, with scores ordered from high to low.
https://redis.io/commands/zrevrange
Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
https://redis.io/commands/zrevrangebylex
Return a range of members in a sorted set, by score, with scores ordered from high to low.
https://redis.io/commands/zrevrangebyscore
Determine the index of a member in a sorted set, with scores ordered from high to low.
https://redis.io/commands/zrevrank
Incrementally iterate sorted sets elements and associated scores.
https://redis.io/commands/zscan
Get the score associated with the given member in a sorted set.
https://redis.io/commands/zscore
Add multiple sorted sets.
https://redis.io/commands/zunion
Add multiple sorted sets and store the resulting sorted set in a new key.
https://redis.io/commands/zunionstore
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.
group
id [id ...]
https://redis.io/commands/xack
Appends a new entry to a stream.
[NOMKSTREAM]
[MAXLEN|MINID [=|~] threshold [LIMIT count]]
*|id
https://redis.io/commands/xadd
Changes (or acquires) ownership of messages in a consumer group, as if the messages were delivered to the specified consumer.
consumer
min-idle-time
[JUSTID]
https://redis.io/commands/xautoclaim
Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.
[IDLE ms]
[TIME unix-time-milliseconds]
[RETRYCOUNT count]
https://redis.io/commands/xclaim
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.
https://redis.io/commands/xdel
Create a consumer group.
groupname
id|$
[MKSTREAM]
[ENTRIESREAD entries_read]
https://redis.io/commands/xgroup-create
Create a consumer in a consumer group.
consumername
https://redis.io/commands/xgroup-createconsumer
Delete a consumer from a consumer group.
https://redis.io/commands/xgroup-delconsumer
Destroy a consumer group.
https://redis.io/commands/xgroup-destroy
Set a consumer group to an arbitrary last delivered ID value.
https://redis.io/commands/xgroup-setid
List the consumers in a consumer group.
https://redis.io/commands/xinfo-consumers
List the consumer groups of a stream.
https://redis.io/commands/xinfo-groups
Get information about a stream.
[FULL [COUNT count]]
https://redis.io/commands/xinfo-stream
Return the number of entries in a stream.
https://redis.io/commands/xlen
Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.
[[IDLE min-idle-time] start end count [consumer]]
https://redis.io/commands/xpending
Return a range of elements in a stream, with IDs matching the specified IDs interval.
end
https://redis.io/commands/xrange
Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.
[BLOCK milliseconds]
STREAMS key [key ...] id [id ...]
https://redis.io/commands/xread
Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.
GROUP group consumer
[NOACK]
https://redis.io/commands/xreadgroup
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.
https://redis.io/commands/xrevrange
An internal command for replicating stream values.
last-id
[ENTRIESADDED entries_added]
[MAXDELETEDID max_deleted_entry_id]
https://redis.io/commands/xsetid
Trims the stream to (approximately if '~' is passed) a certain size.
MAXLEN|MINID [=|~] threshold [LIMIT count]
https://redis.io/commands/xtrim
Append a value to a key.
https://redis.io/commands/append
Decrement the integer value of a key by one.
https://redis.io/commands/decr
Decrement the integer value of a key by the given number.
decrement
https://redis.io/commands/decrby
Get the value of a key.
https://redis.io/commands/get
Get the value of a key and delete the key.
https://redis.io/commands/getdel
Get the value of a key and optionally set its expiration.
[EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|PERSIST]
https://redis.io/commands/getex
Get a substring of the string stored at a key.
https://redis.io/commands/getrange
Set the string value of a key and return its old value.
https://redis.io/commands/getset
Increment the integer value of a key by one.
https://redis.io/commands/incr
Increment the integer value of a key by the given amount.
https://redis.io/commands/incrby
Increment the float value of a key by the given amount.
https://redis.io/commands/incrbyfloat
Find longest common substring.
key1
key2
[LEN]
[IDX]
[MINMATCHLEN len]
[WITHMATCHLEN]
https://redis.io/commands/lcs
Get the values of all the given keys.
https://redis.io/commands/mget
Set multiple keys to multiple values.
key value [key value ...]
https://redis.io/commands/mset
Set multiple keys to multiple values, only if none of the keys exist.
https://redis.io/commands/msetnx
Set the value and expiration in milliseconds of a key.
https://redis.io/commands/psetex
Set the string value of a key.
[EX seconds|PX milliseconds|EXAT unix-time-seconds|PXAT unix-time-milliseconds|KEEPTTL]
[GET]
https://redis.io/commands/set
Set the value and expiration of a key.
https://redis.io/commands/setex
Set the value of a key, only if the key does not exist.
https://redis.io/commands/setnx
Overwrite part of a string at key starting at the specified offset.
https://redis.io/commands/setrange
Get the length of the value stored in a key.
https://redis.io/commands/strlen
https://redis.io/commands/substr
Discard all commands issued after MULTI.
https://redis.io/commands/discard
Execute all commands issued after MULTI.
https://redis.io/commands/exec
Mark the start of a transaction block.
https://redis.io/commands/multi
Forget about all watched keys.
https://redis.io/commands/unwatch
Watch the given keys to determine execution of the MULTI/EXEC block.
https://redis.io/commands/watch
These take a subcommand as a parameter and construct the method name by combining the main command with subcommand - for example, ->xgroup(CREATE => ...) would call ->xgroup_create.
->xgroup(CREATE => ...)
->xgroup_create
Tom Molesworth <TEAM@cpan.org>
This was autogenerated from the official Redis documentation, which is published under the Creative Commons Attribution-ShareAlike license.
The Perl code is copyright Tom Molesworth 2015-2021, and licensed under the same terms as Perl itself.
To install Net::Async::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::Redis
CPAN shell
perl -MCPAN -e shell install Net::Async::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.