The following partial functions intend to manage the response from the GEORADIUS and GEORADIUSBYMEMBER commands.
The following partial functions intend to manage the response from the GEORADIUS and GEORADIUSBYMEMBER commands. The code is not as generic as the previous ones as the exposed types are quite complex and really specific to these two commands
appends the key value with the specified value.
appends the key value with the specified value.
auths with the server.
auths with the server.
save the DB in the background.
save the DB in the background.
Count the number of set bits in the given key within the optional range
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.
Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key.
returns the size of the db.
returns the size of the db.
decrements the specified key by 1
decrements the specified key by 1
decrements the specified key by increment
decrements the specified key by increment
deletes the specified keys.
deletes the specified keys.
evaluates lua code on the server.
evaluates lua code on the server.
test if the specified key exists.
test if the specified key exists.
sets the expire time (in sec.) for the specified key.
sets the expire time (in sec.) for the specified key.
sets the expire time for the specified key.
sets the expire time for the specified key.
removes data from all the DB's.
removes data from all the DB's.
removes all the DB data.
removes all the DB data.
Entry point for GEORADIUS result analysis.
Entry point for GEORADIUS result analysis. The analysis is done in three steps.
First step : we are expecting a MULTI structure and will iterate trivially on it.
Add the given members
in the key
geo sorted set
Add the given members
in the key
geo sorted set
The geo sorted set
The members to be added. Format is (longitude, latitude, member)
The number of elements added to the index. Repeated elements are not added.
Get the geohash for each member in the key geo index.
Get the geohash for each member in the key geo index.
The geohash of each queried member.
Retrieve the position of the members in the key geo sorted set.
Retrieve the position of the members in the key geo sorted set. Note that if a member is not part of the set, None will be returned for this element.
the coordinates of the input members in the same order.
Search for members around an origin point in the key geo sorted set
Search for members around an origin point in the key geo sorted set
The geo index we are searching in
The base longitude for distance computation
The base latitude for distance computation
The radius of the circle we want to search in
The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)
If true, the coordinate of the found members will be returned in the result
If true, the distance between the origin and the found members will be returned in the result
If true, the hash of the found members will be returned in the result
Max number of expected results
The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)
The Redis store we want to write the result in
The redis storedist we want to write the result in
The found members as GeoRadiusMember instances
Search for members around a specific memberin the key geo sorted set
Search for members around a specific memberin the key geo sorted set
The geo index we are searching in
The member we are searching around
The radius of the circle we want to search in
The unit of the radius. Can be m (meters), km (kilometers), mi (miles), ft (feet)
If true, the coordinate of the found members will be returned in the result
If true, the distance between the origin and the found members will be returned in the result
If true, the hash of the found members will be returned in the result
Max number of expected results
The sorting strategy. If empty, order is not guaranteed. Can be ASC (ascending) or DESC (descending)
The Redis store we want to write the result in
The redis storedist we want to write the result in
The found members as GeoRadiusMember instances
gets the value for the specified key.
gets the value for the specified key.
CONFIG GET
CONFIG GET
returns the type of the value stored at key in form of a string.
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 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).
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.
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.8)
Incrementally iterate hash fields and associated values (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.
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 1
increments the specified key by increment
increments the specified key by increment
The info command returns different information and statistics about the server.
The info command returns different information and statistics about the server.
returns all the keys matching the glob-style pattern.
returns all the keys matching the glob-style pattern.
return the UNIX TIME of the last DB SAVE executed with success.
return the UNIX TIME of the last DB SAVE executed with success.
return the especified element of the list stored at the specified key.
return the especified element of the list stored at the specified key. Negative indexes are supported, for example -1 is the last element, -2 the penultimate and so on.
return the length of the list stored at the specified key.
return the length of the list stored at the specified key. If the key does not exist zero is returned (the same behaviour as for empty lists). If the value stored at key is not a list an error is returned.
atomically return and remove the first (LPOP) or last (RPOP) element of the list
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.4)
add values to the head of the list stored at key (Variadic: >= 2.4)
add value to the head of the list stored at key (Variadic: >= 2.4)
add value to the head of the list stored at key (Variadic: >= 2.4)
return the specified elements of the list stored at the specified key.
return the specified elements of the list stored at the specified key. Start and end are zero-based indexes.
Remove the first count occurrences of the value element from the list.
Remove the first count occurrences of the value element from the list.
set the list element at index with the new value.
set the list element at index with the new value. Out of range indexes will generate an error
Trim an existing list so that it will contain only the specified range of elements specified.
Trim an existing list so that it will contain only the specified range of elements specified.
get the values of all the specified keys.
get the values of all the specified keys.
is a debugging command that outputs the whole sequence of commands received by the Redis server.
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.
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. Overwrite value if key exists
set the respective key value pairs.
set the respective key value pairs. Noop if any key exists
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).
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.) for the specified key.
sets the expire time (in milli sec.) for the specified key.
sets the expire timestamp in millis for the specified key.
sets the expire timestamp in millis for the specified key.
Add a value to the hyperloglog (>= 2.8.9)
Add a value to the hyperloglog (>= 2.8.9)
Get the estimated cardinality from one or more keys (>= 2.8.9)
Get the estimated cardinality from one or more keys (>= 2.8.9)
Merge existing keys (>= 2.8.9)
Merge existing keys (>= 2.8.9)
ping
ping
returns the remaining time to live of a key that has a timeout in millis
returns the remaining time to live of a key that has a timeout in millis
exits the server.
exits the server.
returns a randomly selected key from the currently selected DB.
returns a randomly selected key from the currently selected DB.
atomically renames the key oldkey to newkey.
atomically renames the key oldkey to newkey.
rename oldkey into newkey but fails if the destination key newkey already exists.
rename oldkey into newkey but fails if the destination key newkey already exists.
atomically return and remove the first (LPOP) or last (RPOP) element of the list
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.
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.4)
add values to the tail of the list stored at key (Variadic: >= 2.4)
add value to the tail of the list stored at key (Variadic: >= 2.4)
add value to the tail of the list stored at key (Variadic: >= 2.4)
Add the specified members to the set value stored at key.
Add the specified members to the set value stored at key. (VARIADIC: >= 2.4)
save the DB on disk now.
save the DB on disk now.
Incrementally iterate the keys space (since 2.8)
Incrementally iterate the keys space (since 2.8)
Return the number of elements (the cardinality) of the Set at key.
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, ..., keyN.
Return the difference between the Set stored at key1 and all the Sets key2, ..., keyN.
Compute the difference between the Set key1 and all the Sets key2, ..., keyN, and store the resulting Set at dstkey.
Compute the difference between the Set key1 and all the Sets key2, ..., keyN, and store the resulting Set at dstkey.
selects the DB to connect, defaults to 0 (zero).
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
CONFIG SET
Sets or clears the bit at offset in the string value stored at key
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.
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.
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.
Stop all the clients, save the DB, then quit the server.
Return the intersection between the Sets stored at key1, key2, ..., keyN.
Return the intersection between the Sets stored at key1, key2, ..., keyN.
Compute the intersection between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey.
Compute the intersection between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey. SINTERSTORE returns the size of the intersection, unlike what the documentation says refer http://code.google.com/p/redis/issues/detail?id=121
Test if the specified value is a member of the Set at key.
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.
The SLAVEOF command can change the replication settings of a slave on the fly.
Return all the members of the Set value at key.
Return all the members of the Set value at key.
Move the specified member from one Set to another atomically.
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 optionally pull values for them
sort keys in a set, and stores result in the supplied key
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.2).
Remove and return multiple random elements (pop) from the Set value at key since (3.2).
Remove and return (pop) a random element from the Set value at key.
Remove and return (pop) a random element from the Set value at key.
Return multiple random elements from a Set (since 2.6)
Return multiple random elements from a Set (since 2.6)
Return a random element from a Set
Return a random element from a Set
Remove the specified members from the set value stored at key.
Remove the specified members from the set value stored at key. (VARIADIC: >= 2.4)
Incrementally iterate Set elements (since 2.8)
Incrementally iterate Set elements (since 2.8)
gets the length of the value associated with the key
gets the length of the value associated with the key
Return the union between the Sets stored at key1, key2, ..., keyN.
Return the union between the Sets stored at key1, key2, ..., keyN.
Compute the union between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey.
Compute the union between the Sets stored at key1, key2, ..., keyN, and store the resulting Set at dstkey. SUNIONSTORE returns the size of the union, unlike what the documentation says refer http://code.google.com/p/redis/issues/detail?id=121
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 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
returns the remaining time to live of a key that has a timeout
Flushes all the previously watched keys for a transaction
Flushes all the previously watched keys for a transaction
returns the total number of keys existing.
returns the total number of keys existing. (since 3.0.3)
Marks the given keys to be watched for conditional execution of 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.8)
Incrementally iterate sorted sets elements and associated scores (since 2.8)
(Since version ) see corresponding Javadoc for more information.
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 2.8) use randomkey
(Since version 3.10) Use implementation with scala.concurrent.duration.Duration and SetBehaviour
(Since version 1.2.0) use slaveof