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.
Assign new hash slots to receiving node.
slot [slot ...]
Return the number of failure reports active for a given node.
node-id
Return the number of local keys in the specified hash slot.
slot
Set hash slots as unbound in receiving node.
Forces a slave to perform a manual failover of its master..
[FORCE|TAKEOVER]
Remove a node from the nodes table.
Return local key names in the specified hash slot.
count
Provides info about Redis Cluster node state.
Returns the hash slot of the specified key.
key
Force a node cluster to handshake with another node.
ip
port
Get Cluster config for the node.
Reconfigure a node as a slave of the specified master node.
Reset a Redis Cluster node.
[HARD|SOFT]
Forces the node to save cluster state on disk.
Set the configuration epoch in a new node.
config-epoch
Bind a hash slot to a specific node.
IMPORTING|MIGRATING|STABLE|NODE
[node-id]
List slave nodes of the specified master node.
Get array of Cluster slot to node mappings.
Enables read queries for a connection to a cluster slave node.
Disables read queries for a connection to a cluster slave node.
Authenticate to the server.
password
Echo the given string.
message
Ping the server.
[message]
Close the connection.
Change the selected database for the current connection.
index
Swaps two Redis databases.
Delete a key.
key [key ...]
Return a serialized version of the value stored at the specified key..
Determine if a key exists.
Set a key's time to live in seconds.
seconds
Set the expiration for a key as a UNIX timestamp.
timestamp
Find all keys matching the given pattern.
pattern
Atomically transfer a key from a Redis instance to another one..
host
key|""
destination-db
timeout
[COPY]
[REPLACE]
[KEYS key [key ...]]
Move a key to another database.
db
Inspect the internals of Redis objects.
subcommand
[arguments [arguments ...]]
Remove the expiration from a key.
Set a key's time to live in milliseconds.
milliseconds
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
milliseconds-timestamp
Get the time to live for a key in milliseconds.
Return a random key from the keyspace.
Rename a key.
newkey
Rename a key, only if the new key does not exist.
Create a key using the provided serialized value, previously obtained using DUMP..
ttl
serialized-value
Sort the elements in a list, set or sorted set.
[BY pattern]
[LIMIT offset count]
[GET pattern [GET pattern ...]]
[ASC|DESC]
[ALPHA]
[STORE destination]
Alters the last access time of a key(s). Returns the number of existing keys specified..
Get the time to live for a key.
Determine the type stored at key.
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking..
Wait for the synchronous replication of all the write commands sent in the context of the current connection.
numslaves
Incrementally iterate the keys space.
cursor
[MATCH pattern]
[COUNT count]
Add one or more geospatial items in the geospatial index represented using a sorted set.
longitude latitude member [longitude latitude member ...]
Returns members of a geospatial index as standard geohash strings.
member [member ...]
Returns longitude and latitude of members of a geospatial index.
Returns the distance between two members of a geospatial index.
member1
member2
[unit]
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]
[STORE key]
[STOREDIST key]
Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member.
member
Delete one or more hash fields.
field [field ...]
Determine if a hash field exists.
field
Get the value of a hash field.
Get all the fields and values in a hash.
Increment the integer value of a hash field by the given number.
increment
Increment the float value of a hash field by the given amount.
Get all the fields in a hash.
Get the number of fields in a hash.
Get the values of all the given hash fields.
Set multiple hash fields to multiple values.
field value [field value ...]
Set the string value of a hash field.
value
Set the value of a hash field, only if the field does not exist.
Get the length of the value of a hash field.
Get all the values in a hash.
Incrementally iterate hash fields and associated values.
Adds the specified elements to the specified HyperLogLog..
element [element ...]
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s)..
Merge N different HyperLogLogs into a single one..
destkey
sourcekey [sourcekey ...]
Remove and get the first element in a list, or block until one is available.
Remove and get the last element in a list, or block until one is available.
Pop a value from a list, push it to another list and return it; or block until one is available.
source
destination
Get an element from a list by its index.
Insert an element before or after another element in a list.
BEFORE|AFTER
pivot
Get the length of a list.
Remove and get the first element in a list.
Prepend one or multiple values to a list.
value [value ...]
Prepend a value to a list, only if the list exists.
Get a range of elements from a list.
start
stop
Remove elements from a list.
Set the value of an element in a list by its index.
Trim a list to the specified range.
Remove and get the last element in a list.
Remove the last element in a list, prepend it to another list and return it.
Append one or multiple values to a list.
Append a value to a list, only if the list exists.
Listen for messages published to channels matching the given patterns.
pattern [pattern ...]
Inspect the state of the Pub/Sub subsystem.
[argument [argument ...]]
Post a message to a channel.
channel
Stop listening for messages posted to channels matching the given patterns.
[pattern [pattern ...]]
Listen for messages published to the given channels.
channel [channel ...]
Stop listening for messages posted to the given channels.
[channel [channel ...]]
Execute a Lua script server side.
script
numkeys
arg [arg ...]
sha1
Set the debug mode for executed scripts..
YES|SYNC|NO
Check existence of scripts in the script cache..
sha1 [sha1 ...]
Remove all the scripts from the script cache..
Kill the script currently in execution..
Load the specified Lua script into the script cache..
Asynchronously rewrite the append-only file.
Asynchronously save the dataset to disk.
Kill the connection of a client.
[ip:port]
[ID client-id]
[TYPE normal|master|slave|pubsub]
[ADDR ip:port]
[SKIPME yes/no]
Get the list of client connections.
Get the current connection name.
Stop processing commands from clients for some time.
Instruct the server whether to reply to commands.
ON|OFF|SKIP
Set the current connection name.
connection-name
Get array of Redis command details.
Get total number of Redis commands.
Extract keys given a full Redis command.
Get array of specific Redis command details.
command-name [command-name ...]
Get the value of a configuration parameter.
parameter
Rewrite the configuration file with the in memory configuration.
Set a configuration parameter to the given value.
Reset the stats returned by INFO.
Return the number of keys in the selected database.
Get debugging information about a key.
Make the server crash.
Remove all keys from all databases.
[ASYNC]
Remove all keys from the current database.
Get information and statistics about the server.
[section]
Get the UNIX time stamp of the last successful save to disk.
Listen for all requests received by the server in real time.
Return the role of the instance in the context of replication.
Synchronously save the dataset to disk.
Synchronously save the dataset to disk and then shut down the server.
[NOSAVE|SAVE]
Make the server a slave of another instance, or promote it as master.
Manages the Redis slow queries log.
[argument]
Internal command used for replication.
Return the current server time.
Add one or more members to a set.
Get the number of members in a set.
Subtract multiple sets.
Subtract multiple sets and store the resulting set in a key.
Intersect multiple sets.
Intersect multiple sets and store the resulting set in a key.
Determine if a given value is a member of a set.
Get all the members in a set.
Move a member from one set to another.
Remove and return one or multiple random members from a set.
[count]
Get one or multiple random members from a set.
Remove one or more members from a set.
Add multiple sets.
Add multiple sets and store the resulting set in a key.
Incrementally iterate Set elements.
Add one or more members to a sorted set, or update its score if it already exists.
[NX|XX]
[CH]
[INCR]
score member [score member ...]
Get the number of members in a sorted set.
Count the members in a sorted set with scores within the given values.
min
max
Increment the score of a member in a sorted set.
Intersect multiple sorted sets and store the resulting sorted set in a new key.
[WEIGHTS weight [weight ...]]
[AGGREGATE SUM|MIN|MAX]
Count the number of members in a sorted set between a given lexicographical range.
Return a range of members in a sorted set, by index.
[WITHSCORES]
Return a range of members in a sorted set, by lexicographical range.
Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings..
Return a range of members in a sorted set, by score.
Determine the index of a member in a sorted set.
Remove one or more members from a sorted set.
Remove all members in a sorted set between the given lexicographical range.
Remove all members in a sorted set within the given indexes.
Remove all members in a sorted set within the given scores.
Return a range of members in a sorted set, by index, with scores ordered from high to low.
Return a range of members in a sorted set, by score, with scores ordered from high to low.
Determine the index of a member in a sorted set, with scores ordered from high to low.
Get the score associated with the given member in a sorted set.
Add multiple sorted sets and store the resulting sorted set in a new key.
Incrementally iterate sorted sets elements and associated scores.
Append a value to a key.
Count set bits in a string.
[start end]
Perform arbitrary bitfield integer operations on strings.
[GET type offset]
[SET type offset value]
[INCRBY type offset increment]
[OVERFLOW WRAP|SAT|FAIL]
Perform bitwise operations between strings.
operation
Find first bit set or clear in a string.
bit
[start]
[end]
Decrement the integer value of a key by one.
Decrement the integer value of a key by the given number.
decrement
Get the value of a key.
Returns the bit value at offset in the string value stored at key.
offset
Get a substring of the string stored at a key.
end
Set the string value of a key and return its old value.
Increment the integer value of a key by one.
Increment the integer value of a key by the given amount.
Increment the float value of a key by the given amount.
Get the values of all the given keys.
Set multiple keys to multiple values.
key value [key value ...]
Set multiple keys to multiple values, only if none of the keys exist.
Set the value and expiration in milliseconds of a key.
Set the string value of a key.
[EX seconds]
[PX milliseconds]
Sets or clears the bit at offset in the string value stored at key.
Set the value and expiration of a key.
Set the value of a key, only if the key does not exist.
Overwrite part of a string at key starting at the specified offset.
Get the length of the value stored in a key.
Discard all commands issued after MULTI.
Execute all commands issued after MULTI.
Mark the start of a transaction block.
Forget about all watched keys.
Watch the given keys to determine execution of the MULTI/EXEC block.
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2015-2017. 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.