add server to internal pool
add server to internal pool
appends the key value with the specified value.
auths with the server.
save the DB in the background.
Count the number of set bits in the given key within the optional range
Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key.
returns the size of the db.
decrements the specified key by 1
decrements the specified key by increment
deletes the specified keys.
evaluates lua code on the server.
test if the specified key exists.
sets the expire time (in sec.
sets the expire time for the specified key.
removes data from all the DB's.
removes all the DB data.
gets the value for the specified key.
CONFIG GET
returns the type of the value stored at key in form of a string.
Returns the bit value at offset in the string value stored at key
Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive).
is an atomic set this value and return the old value command.
Sets the specified fields to their respective values in the hash stored at key.
Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
from fields to values
True
if operation completed successfully,
False
otherwise.
Incrementally iterate hash fields and associated values (since 2.
Sets field
in the hash stored at key
to value
.
Sets field
in the hash stored at key
to value
.
If key
does not exist, a new key holding a hash is created.
If field already exists in the hash, it is overwritten.
Some(0)
if field
is a new field in the hash and value was set,
Some(1)
if field
already exists in the hash and the value was updated.
Sets field
in the hash stored at key
to value
, only if field does not yet exist.
Sets field
in the hash stored at key
to value
, only if field does not yet exist.
If key does not exist, a new key holding a hash is created.
If field already exists, this operation has no effect.
True
if field
is a new field in the hash and value was set.
False if field
exists in the hash and no operation was performed.
increments the specified key by 1
increments the specified key by increment
The info command returns different information and statistics about the server.
returns all the keys matching the glob-style pattern.
return the UNIX TIME of the last DB SAVE executed with success.
return the especified element of the list stored at the specified key.
list all running servers
list all running servers
return the length of the list stored at the specified key.
atomically return and remove the first (LPOP) or last (RPOP) element of the list
add values to the head of the list stored at key (Variadic: >= 2.
add value to the head of the list stored at key (Variadic: >= 2.
return the specified elements of the list stored at the specified key.
Remove the first count occurrences of the value element from the list.
set the list element at index with the new value.
Trim an existing list so that it will contain only the specified range of elements specified.
get the values of all the specified keys.
is a debugging command that outputs the whole sequence of commands received by the Redis server.
Move the specified key from the currently selected DB to the specified destination DB.
set the respective key value pairs.
set the respective key value pairs.
get node for the key
get node for the key
Remove the existing timeout on key, turning the key from volatile (a key with an expire set) to persistent (a key that will never expire as no timeout is associated).
sets the expire time (in milli sec.
sets the expire timestamp in millis for the specified key.
ping
returns the remaining time to live of a key that has a timeout in millis
exits the server.
returns a randomly selected key from the currently selected DB.
remove a server
remove a server
atomically renames the key oldkey to newkey.
rename oldkey into newkey but fails if the destination key newkey already exists.
replace a server very useful when you want to replace a server in test mode to one in production mode
replace a server very useful when you want to replace a server in test mode to one in production mode
Use Case: Suppose I have a big list of key/value pairs which are replicated in 2 Redis servers - one having test values for every key and the other having production values for the same set of keys. In a cluster using replaceServer I can switch between test mode and production mode without disturbing the hash ring. This gives an additional level of abstraction on the node name decoupling it from the node address.
atomically return and remove the first (LPOP) or last (RPOP) element of the list
Remove the first count occurrences of the value element from the list.
add values to the tail of the list stored at key (Variadic: >= 2.
add value to the tail of the list stored at key (Variadic: >= 2.
Add the specified members to the set value stored at key.
save the DB on disk now.
Incrementally iterate the keys space (since 2.
Return the number of elements (the cardinality) of the Set at key.
Return the difference between the Set stored at key1 and all the Sets key2, .
Compute the difference between the Set key1 and all the Sets key2, .
selects the DB to connect, defaults to 0 (zero).
sets the key with the specified value.
sets the key with the specified value. Starting with Redis 2.6.12 SET supports a set of options that modify its behavior:
NX -- Only set the key if it does not already exist. XX -- Only set the key if it already exist. PX milliseconds -- Set the specified expire time, in milliseconds.
CONFIG SET
Sets or clears the bit at offset in the string value stored at key
sets the value for the specified key, only if the key is not there.
SETRANGE key offset value Overwrites part of the string stored at key, starting at the specified offset, for the entire length of value.
Stop all the clients, save the DB, then quit the server.
Return the intersection between the Sets stored at key1, key2, .
Compute the intersection between the Sets stored at key1, key2, .
Test if the specified value is a member of the Set at key.
The SLAVEOF command can change the replication settings of a slave on the fly.
Return all the members of the Set value at key.
Move the specified member from one Set to another atomically.
sort keys in a set, and optionally pull values for them
sort keys in a set, and stores result in the supplied key
Remove and return multiple random elements (pop) from the Set value at key since (3.
Remove and return (pop) a random element from the Set value at key.
Return multiple random elements from a Set (since 2.
Return a random element from a Set
Remove the specified members from the set value stored at key.
Incrementally iterate Set elements (since 2.
gets the length of the value associated with the key
Return the union between the Sets stored at key1, key2, .
Compute the union between the Sets stored at key1, key2, .
returns the current server time as a two items lists: a Unix timestamp and the amount of microseconds already elapsed in the current second.
returns the remaining time to live of a key that has a timeout
Flushes all the previously watched keys for a transaction
Marks the given keys to be watched for conditional execution of a transaction.
Add the specified members having the specified score to the sorted set stored at key.
Add the specified members having the specified score to the sorted set stored at key. (Variadic: >= 2.4)
Remove the specified members from the sorted set value stored at key.
Remove the specified members from the sorted set value stored at key. (Variadic: >= 2.4)
Incrementally iterate sorted sets elements and associated scores (since 2.
Incrementally iterate sorted sets elements and associated scores (since 2.8)
Sets field
in the hash stored at key
to value
.
Sets field
in the hash stored at key
to value
.
If key
does not exist, a new key holding a hash is created.
If field already exists in the hash, it is overwritten.
True
if field
is a new field in the hash and value was set,
False
if field
already exists in the hash and the value was updated.
return value semantics is inconsistent with com.redis.HashOperations#hsetnx and com.redis.HashOperations#hmset. Use com.redis.HashOperations#hset1 instead
(Since version 3.10) Use implementation with scala.concurrent.duration.Duration and SetBehaviour