implicit final class VertxRedisClientOps extends AnyVal
- Alphabetic
- By Inheritance
- VertxRedisClientOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VertxRedisClientOps(target: RedisClient)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def appendL(key: String, value: String): Task[Long]
Append a value to a key
Append a value to a key
- key
Key string
- value
Value to append
- Since
Redis 2.0.0 group: string
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authL(password: String): Task[String]
Authenticate to the server
Authenticate to the server
- password
Password for authentication
- Since
Redis 1.0.0 group: connection
- def bgrewriteaofL(): Task[String]
Asynchronously rewrite the append-only file
Asynchronously rewrite the append-only file
- Since
Redis 1.0.0 group: server
- def bgsaveL(): Task[String]
Asynchronously save the dataset to disk
Asynchronously save the dataset to disk
- Since
Redis 1.0.0 group: server
- def bitcountL(key: String): Task[Long]
Count set bits in a string
Count set bits in a string
- key
Key string
- Since
Redis 2.6.0 group: string
- def bitcountRangeL(key: String, start: Long, end: Long): Task[Long]
Count set bits in a string
Count set bits in a string
- key
Key string
- start
Start index
- end
End index
- Since
Redis 2.6.0 group: string
- def bitfieldL(key: String, bitFieldOptions: BitFieldOptions): Task[JsonArray]
Perform arbitrary bitfield integer operations on strings.
Perform arbitrary bitfield integer operations on strings.
- key
Key string
- Since
Redis 3.2.0 group: string
- def bitfieldWithOverflowL(key: String, commands: BitFieldOptions, overflow: BitFieldOverflowOptions): Task[JsonArray]
Perform arbitrary bitfield integer operations on strings.
Perform arbitrary bitfield integer operations on strings.
- key
Key string
- Since
Redis 3.2.0 group: string
- def bitopL(operation: BitOperation, destkey: String, keys: List[String]): Task[Long]
Perform bitwise operations between strings
Perform bitwise operations between strings
- operation
Bitwise operation to perform
- destkey
Destination key where result is stored
- keys
List of keys on which to perform the operation
- Since
Redis 2.6.0 group: string
- def bitposFromL(key: String, bit: Int, start: Int): Task[Long]
Find first bit set or clear in a string
Find first bit set or clear in a string
See also bitposRange() method, which takes start, and stop offset.
- key
Key string
- bit
What bit value to look for - must be 1, or 0
- start
Start offset
- Since
Redis 2.8.7 group: string
- def bitposL(key: String, bit: Int): Task[Long]
Find first bit set or clear in a string
Find first bit set or clear in a string
- key
Key string
- bit
What bit value to look for - must be 1, or 0
- Since
Redis 2.8.7 group: string
- def bitposRangeL(key: String, bit: Int, start: Int, stop: Int): Task[Long]
Find first bit set or clear in a string
Find first bit set or clear in a string
Note: when both start, and stop offsets are specified, behaviour is slightly different than if only start is specified
- key
Key string
- bit
What bit value to look for - must be 1, or 0
- start
Start offset
- stop
End offset - inclusive
- Since
Redis 2.8.7 group: string
- def blpopL(key: String, seconds: Int): Task[JsonArray]
Remove and get the first element in a list, or block until one is available
Remove and get the first element in a list, or block until one is available
- key
Key string identifying a list to watch
- seconds
Timeout in seconds
- Since
Redis 2.0.0 group: list
- def blpopManyL(keys: List[String], seconds: Int): Task[JsonArray]
Remove and get the first element in any of the lists, or block until one is available
Remove and get the first element in any of the lists, or block until one is available
- keys
List of key strings identifying lists to watch
- seconds
Timeout in seconds
- Since
Redis 2.0.0 group: list
- def brpopL(key: String, seconds: Int): Task[JsonArray]
Remove and get the last 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
- key
Key string identifying a list to watch
- seconds
Timeout in seconds
- Since
Redis 2.0.0 group: list
- def brpopManyL(keys: List[String], seconds: Int): Task[JsonArray]
Remove and get the last element in any of the lists, or block until one is available
Remove and get the last element in any of the lists, or block until one is available
- keys
List of key strings identifying lists to watch
- seconds
Timeout in seconds
- Since
Redis 2.0.0 group: list
- def brpoplpushL(key: String, destkey: String, seconds: Int): Task[String]
Pop a value from a list, push it to another list and return it; 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
- key
Key string identifying the source list
- destkey
Key string identifying the destination list
- seconds
Timeout in seconds
- Since
Redis 2.2.0 group: list
- def clientGetnameL(): Task[String]
Get the current connection name
Get the current connection name
- Since
Redis 2.6.9 group: server
- def clientKillL(filter: KillFilter): Task[Long]
Kill the connection of a client
Kill the connection of a client
- filter
Filter options
- Since
Redis 2.4.0 group: server
- def clientListL(): Task[String]
Get the list of client connections
Get the list of client connections
- Since
Redis 2.4.0 group: server
- def clientPauseL(millis: Long): Task[String]
Stop processing commands from clients for some time
Stop processing commands from clients for some time
- millis
Pause time in milliseconds
- Since
Redis 2.9.50 group: server
- def clientReplyL(options: ClientReplyOptions): Task[String]
Instruct the server whether to reply to commands.
Instruct the server whether to reply to commands.
- Since
Redis 3.2.0 group: server
- def clientSetnameL(name: String): Task[String]
Set the current connection name
Set the current connection name
- name
New name for current connection
- Since
Redis 2.6.9 group: server
- def closeL(): Task[Unit]
Close the client - when it is fully closed the handler will be called.
- def clusterAddslotsL(slots: List[Long]): Task[Unit]
Assign new hash slots to receiving node.
Assign new hash slots to receiving node.
- Since
Redis 3.0.0 group: server
- def clusterCountFailureReportsL(nodeId: String): Task[Long]
Return the number of failure reports active for a given node.
Return the number of failure reports active for a given node.
- Since
Redis 3.0.0 group: cluster
- def clusterCountkeysinslotL(slot: Long): Task[Long]
Return the number of local keys in the specified hash slot.
Return the number of local keys in the specified hash slot.
- Since
Redis 3.0.0 group: cluster
- def clusterDelslotsL(slot: Long): Task[Unit]
Set hash slots as unbound in receiving node.
Set hash slots as unbound in receiving node.
- Since
Redis 3.0.0 group: cluster
- def clusterDelslotsManyL(slots: List[Long]): Task[Unit]
Set hash slots as unbound in receiving node.
Set hash slots as unbound in receiving node.
- Since
Redis 3.0.0 group: cluster
- def clusterFailOverWithOptionsL(options: FailoverOptions): Task[Unit]
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master.
- Since
Redis 3.0.0 group: cluster
- def clusterFailoverL(): Task[Unit]
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master.
- Since
Redis 3.0.0 group: cluster
- def clusterForgetL(nodeId: String): Task[Unit]
Remove a node from the nodes table.
Remove a node from the nodes table.
- Since
Redis 3.0.0 group: cluster
- def clusterGetkeysinslotL(slot: Long, count: Long): Task[JsonArray]
Return local key names in the specified hash slot.
Return local key names in the specified hash slot.
- Since
Redis 3.0.0 group: cluster
- def clusterInfoL(): Task[JsonArray]
Provides info about Redis Cluster node state.
Provides info about Redis Cluster node state.
- Since
Redis 3.0.0 group: cluster
- def clusterKeyslotL(key: String): Task[Long]
Returns the hash slot of the specified key.
Returns the hash slot of the specified key.
- Since
Redis 3.0.0 group: cluster
- def clusterMeetL(ip: String, port: Long): Task[Unit]
Force a node cluster to handshake with another node.
Force a node cluster to handshake with another node.
- Since
Redis 3.0.0 group: cluster
- def clusterNodesL(): Task[JsonArray]
Get Cluster config for the node.
Get Cluster config for the node.
- Since
Redis 3.0.0 group: cluster
- def clusterReplicateL(nodeId: String): Task[Unit]
Reconfigure a node as a slave of the specified master node.
Reconfigure a node as a slave of the specified master node.
- Since
Redis 3.0.0 group: cluster
- def clusterResetL(): Task[Unit]
Reset a Redis Cluster node.
Reset a Redis Cluster node.
- Since
Redis 3.0.0 group: cluster
- def clusterResetWithOptionsL(options: ResetOptions): Task[Unit]
Reset a Redis Cluster node.
Reset a Redis Cluster node.
- Since
Redis 3.0.0 group: cluster
- def clusterSaveconfigL(): Task[Unit]
Forces the node to save cluster state on disk.
Forces the node to save cluster state on disk.
- Since
Redis 3.0.0 group: cluster
- def clusterSetConfigEpochL(epoch: Long): Task[Unit]
Set the configuration epoch in a new node.
Set the configuration epoch in a new node.
- Since
Redis 3.0.0 group: cluster
- def clusterSetslotL(slot: Long, subcommand: SlotCmd): Task[Unit]
Bind an hash slot to a specific node.
Bind an hash slot to a specific node.
- Since
Redis 3.0.0 group: cluster
- def clusterSetslotWithNodeL(slot: Long, subcommand: SlotCmd, nodeId: String): Task[Unit]
Bind an hash slot to a specific node.
Bind an hash slot to a specific node.
- Since
Redis 3.0.0 group: cluster
- def clusterSlavesL(nodeId: String): Task[JsonArray]
List slave nodes of the specified master node.
List slave nodes of the specified master node.
- Since
Redis 3.0.0 group: cluster
- def clusterSlotsL(): Task[JsonArray]
Get array of Cluster slot to node mappings
Get array of Cluster slot to node mappings
- Since
Redis 3.0.0 group: server
- def commandCountL(): Task[Long]
Get total number of Redis commands
Get total number of Redis commands
- Since
Redis 2.8.13 group: server
- def commandGetkeysL(): Task[JsonArray]
Extract keys given a full Redis command
Extract keys given a full Redis command
- Since
Redis 2.8.13 group: server
- def commandInfoL(commands: List[String]): Task[JsonArray]
Get array of specific Redis command details
Get array of specific Redis command details
- commands
List of commands to get info for
- Since
Redis 2.8.13 group: server
- def commandL(): Task[JsonArray]
Get array of Redis command details
Get array of Redis command details
- Since
Redis 2.8.13 group: server
- def configGetL(parameter: String): Task[JsonArray]
Get the value of a configuration parameter
Get the value of a configuration parameter
- parameter
Configuration parameter
- Since
Redis 2.0.0 group: server
- def configResetstatL(): Task[String]
Reset the stats returned by INFO
Reset the stats returned by INFO
- Since
Redis 2.0.0 group: server
- def configRewriteL(): Task[String]
Rewrite the configuration file with the in memory configuration
Rewrite the configuration file with the in memory configuration
- Since
Redis 2.8.0 group: server
- def configSetL(parameter: String, value: String): Task[String]
Set a configuration parameter to the given value
Set a configuration parameter to the given value
- parameter
Configuration parameter
- value
New value
- Since
Redis 2.0.0 group: server
- def dbsizeL(): Task[Long]
Return the number of keys in the selected database
Return the number of keys in the selected database
- Since
Redis 1.0.0 group: server
- def debugObjectL(key: String): Task[String]
Get debugging information about a key
Get debugging information about a key
- key
Key string
- Since
Redis 1.0.0 group: server
- def debugSegfaultL(): Task[String]
Make the server crash
Make the server crash
- Since
Redis 1.0.0 group: server
- def decrL(key: String): Task[Long]
Decrement the integer value of a key by one
Decrement the integer value of a key by one
- key
Key string
- Since
Redis 1.0.0 group: string
- def decrbyL(key: String, decrement: Long): Task[Long]
Decrement the integer value of a key by the given number
Decrement the integer value of a key by the given number
- key
Key string
- decrement
Value by which to decrement
- Since
Redis 1.0.0 group: string
- def delL(key: String): Task[Long]
Delete a key
Delete a key
- key
Keys to delete
- Since
Redis 1.0.0 group: generic
- def delManyL(keys: List[String]): Task[Long]
Delete many keys
Delete many keys
- keys
List of keys to delete
- Since
Redis 1.0.0 group: generic
- def dumpL(key: String): Task[String]
Return a serialized version of the value stored at the specified key.
Return a serialized version of the value stored at the specified key.
- key
Key string
- Since
Redis 2.6.0 group: generic
- def echoL(message: String): Task[String]
Echo the given string
Echo the given string
- message
String to echo
- Since
Redis 1.0.0 group: connection
- def evalL(script: String, keys: List[String], args: List[String]): Task[JsonArray]
Execute a Lua script server side.
Execute a Lua script server side. Due to the dynamic nature of this command any response type could be returned for This reason and to ensure type safety the reply is always guaranteed to be a JsonArray.
When a reply if for example a String the handler will be called with a JsonArray with a single element containing the String.
- script
Lua script to evaluate
- keys
List of keys
- args
List of argument values
- Since
Redis 2.6.0 group: scripting
- def evalScriptL(script: Script, keys: List[String], args: List[String]): Task[JsonArray]
Execute a Lua script server side.
Execute a Lua script server side. This method is a high level wrapper around EVAL and EVALSHA using the latter if possible, falling back to EVAL if the script is not cached by the server yet. According to Redis documentation, executed scripts are guaranteed to be in the script cache of a given execution of a Redis instance forever, which means typically the overhead incurred by optimistically sending EVALSHA is minimal, while improving performance and saving bandwidth compared to using EVAL every time.
- script
Lua script and its SHA1 digest
- keys
List of keys
- args
List of argument values
- See also
- def evalshaL(sha1: String, keys: List[String], values: List[String]): Task[JsonArray]
Execute a Lua script server side.
Execute a Lua script server side. Due to the dynamic nature of this command any response type could be returned for This reason and to ensure type safety the reply is always guaranteed to be a JsonArray.
When a reply if for example a String the handler will be called with a JsonArray with a single element containing the String.
- sha1
SHA1 digest of the script cached on the server
- keys
List of keys
- values
List of values
- Since
Redis 2.6.0 group: scripting
- def existsL(key: String): Task[Long]
Determine if a key exists
Determine if a key exists
- key
Key string
- Since
Redis 1.0.0 group: generic
- def existsManyL(keys: List[String]): Task[Long]
Determine if one or many keys exist
Determine if one or many keys exist
- keys
List of key strings
- Since
Redis 3.0.3 group: generic
- def expireL(key: String, seconds: Long): Task[Long]
Set a key's time to live in seconds
Set a key's time to live in seconds
- key
Key string
- seconds
Time to live in seconds
- Since
Redis 1.0.0 group: generic
- def expireatL(key: String, seconds: Long): Task[Long]
Set the expiration for a key as a UNIX timestamp
Set the expiration for a key as a UNIX timestamp
- key
Key string
- seconds
Expiry time as Unix timestamp in seconds
- Since
Redis 1.2.0 group: generic
- def flushallL(): Task[String]
Remove all keys from all databases
Remove all keys from all databases
- Since
Redis 1.0.0 group: server
- def flushdbL(): Task[String]
Remove all keys from the current database
Remove all keys from the current database
- Since
Redis 1.0.0 group: server
- def geoaddL(key: String, longitude: Double, latitude: Double, member: String): Task[Long]
Add one or more geospatial items in the geospatial index represented using a sorted set.
Add one or more geospatial items in the geospatial index represented using a sorted set.
- key
Key string
- longitude
longitude
- latitude
latitude
- member
member
- Since
Redis 3.2.0 group: geo
- def geoaddManyL(key: String, members: List[GeoMember]): Task[Long]
Add one or more geospatial items in the geospatial index represented using a sorted set.
Add one or more geospatial items in the geospatial index represented using a sorted set.
- key
Key string
- members
list of <lon, lat, member>
- Since
Redis 3.2.0 group: geo
- def geodistL(key: String, member1: String, member2: String): Task[String]
Return the distance between two members in the geospatial index represented by the sorted set.
Return the distance between two members in the geospatial index represented by the sorted set.
- key
Key string
- member1
member 1
- member2
member 2
- Since
Redis 3.2.0 group: geo
- def geodistWithUnitL(key: String, member1: String, member2: String, unit: GeoUnit): Task[String]
Return the distance between two members in the geospatial index represented by the sorted set.
Return the distance between two members in the geospatial index represented by the sorted set.
- key
Key string
- member1
member 1
- member2
member 2
- unit
geo unit
- Since
Redis 3.2.0 group: geo
- def geohashL(key: String, member: String): Task[JsonArray]
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD).
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD).
- key
Key string
- member
member
- Since
Redis 3.2.0 group: geo
- def geohashManyL(key: String, members: List[String]): Task[JsonArray]
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD).
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD).
- key
Key string
- members
list of members
- Since
Redis 3.2.0 group: geo
- def geoposL(key: String, member: String): Task[JsonArray]
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
- key
Key string
- member
member
- Since
Redis 3.2.0 group: geo
- def geoposManyL(key: String, members: List[String]): Task[JsonArray]
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key.
- key
Key string
- members
list of members
- Since
Redis 3.2.0 group: geo
- def georadiusL(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit): Task[JsonArray]
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius).
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius).
- key
Key string
- longitude
longitude
- latitude
latitude
- radius
radius
- unit
geo unit
- Since
Redis 3.2.0 group: geo
- def georadiusWithOptionsL(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): Task[JsonArray]
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius).
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius).
- key
Key string
- longitude
longitude
- latitude
latitude
- radius
radius
- unit
geo unit
- options
geo radius options
- Since
Redis 3.2.0 group: geo
- def georadiusbymemberL(key: String, member: String, radius: Double, unit: GeoUnit): Task[JsonArray]
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set.
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set.
- key
Key string
- member
member
- radius
radius
- unit
geo unit
- Since
Redis 3.2.0 group: geo
- def georadiusbymemberWithOptionsL(key: String, member: String, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): Task[JsonArray]
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set.
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set.
- key
Key string
- member
member
- radius
radius
- unit
geo unit
- options
geo radius options
- Since
Redis 3.2.0 group: geo
- def getBinaryL(key: String): Task[Buffer]
Get the value of a key - without decoding as utf-8
Get the value of a key - without decoding as utf-8
- key
Key string
- Since
Redis 1.0.0 group: string
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getL(key: String): Task[String]
Get the value of a key
Get the value of a key
- key
Key string
- Since
Redis 1.0.0 group: string
- def getbitL(key: String, offset: Long): Task[Long]
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
- key
Key string
- offset
Offset in bits
- Since
Redis 2.2.0 group: string
- def getrangeL(key: String, start: Long, end: Long): Task[String]
Get a substring of the string stored at a key
Get a substring of the string stored at a key
- key
Key string
- start
Start offset
- end
End offset - inclusive
- Since
Redis 2.4.0 group: string
- def getsetL(key: String, value: String): Task[String]
Set the string value of a key and return its old value
Set the string value of a key and return its old value
- key
Key of which value to set
- value
New value for the key
- Since
Redis 1.0.0 group: string
- def hdelL(key: String, field: String): Task[Long]
Delete one or more hash fields
Delete one or more hash fields
- key
Key string
- field
Field name
- Since
Redis 2.0.0 group: hash
- def hdelManyL(key: String, fields: List[String]): Task[Long]
Delete one or more hash fields
Delete one or more hash fields
- key
Key string
- fields
Field names
- Since
Redis 2.0.0 group: hash
- def hexistsL(key: String, field: String): Task[Long]
Determine if a hash field exists
Determine if a hash field exists
- key
Key string
- field
Field name
- Since
Redis 2.0.0 group: hash
- def hgetL(key: String, field: String): Task[String]
Get the value of a hash field
Get the value of a hash field
- key
Key string
- field
Field name
- Since
Redis 2.0.0 group: hash
- def hgetallL(key: String): Task[JsonObject]
Get all the fields and values in a hash
Get all the fields and values in a hash
- key
Key string
- Since
Redis 2.0.0 group: hash
- def hincrbyL(key: String, field: String, increment: Long): Task[Long]
Increment the integer value of a hash field by the given number
Increment the integer value of a hash field by the given number
- key
Key string
- field
Field name
- increment
Value by which to increment
- Since
Redis 2.0.0 group: hash
- def hincrbyfloatL(key: String, field: String, increment: Double): Task[String]
Increment the float value of a hash field by the given amount
Increment the float value of a hash field by the given amount
- key
Key string
- field
Field name
- increment
Value by which to increment
- Since
Redis 2.6.0 group: hash
- def hkeysL(key: String): Task[JsonArray]
Get all the fields in a hash
Get all the fields in a hash
- key
Key string
- Since
Redis 2.0.0 group: hash
- def hlenL(key: String): Task[Long]
Get the number of fields in a hash
Get the number of fields in a hash
- key
Key string
- Since
Redis 2.0.0 group: hash
- def hmgetL(key: String, fields: List[String]): Task[JsonArray]
Get the values of all the given hash fields
Get the values of all the given hash fields
- key
Key string
- fields
Field names
- Since
Redis 2.0.0 group: hash
- def hmsetL(key: String, values: JsonObject): Task[String]
Set multiple hash fields to multiple values
Set multiple hash fields to multiple values
- key
Key string
- values
Map of field:value pairs
- Since
Redis 2.0.0 group: hash
- def hscanL(key: String, cursor: String, options: ScanOptions): Task[JsonArray]
Incrementally iterate hash fields and associated values
Incrementally iterate hash fields and associated values
- key
Key string
- cursor
Cursor id
- options
Scan options
- Since
Redis 2.8.0 group: hash
- def hsetL(key: String, field: String, value: String): Task[Long]
Set the string value of a hash field
Set the string value of a hash field
- key
Key string
- field
Field name
- value
New value
- Since
Redis 2.0.0 group: hash
- def hsetnxL(key: String, field: String, value: String): Task[Long]
Set the value of a hash field, only if the field does not exist
Set the value of a hash field, only if the field does not exist
- key
Key string
- field
Field name
- value
New value
- Since
Redis 2.0.0 group: hash
- def hstrlenL(key: String, field: String): Task[Long]
Get the length of the value of a hash field.
Get the length of the value of a hash field.
- key
Key String
- field
field
- Since
Redis 3.2.0 group: hash
- def hvalsL(key: String): Task[JsonArray]
Get all the values in a hash
Get all the values in a hash
- key
Key string
- Since
Redis 2.0.0 group: hash
- def incrL(key: String): Task[Long]
Increment the integer value of a key by one
Increment the integer value of a key by one
- key
Key string
- Since
Redis 1.0.0 group: string
- def incrbyL(key: String, increment: Long): Task[Long]
Increment the integer value of a key by the given amount
Increment the integer value of a key by the given amount
- key
Key string
- increment
Value by which to increment
- Since
Redis 1.0.0 group: string
- def incrbyfloatL(key: String, increment: Double): Task[String]
Increment the float value of a key by the given amount
Increment the float value of a key by the given amount
- key
Key string
- increment
Value by which to increment
- Since
Redis 2.6.0 group: string
- def infoL(): Task[JsonObject]
Get information and statistics about the server
Get information and statistics about the server
- Since
Redis 1.0.0 group: server
- def infoSectionL(section: String): Task[JsonObject]
Get information and statistics about the server
Get information and statistics about the server
- section
Specific section of information to return
- Since
Redis 1.0.0 group: server
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keysL(pattern: String): Task[JsonArray]
Find all keys matching the given pattern
Find all keys matching the given pattern
- pattern
Pattern to limit the keys returned
- Since
Redis 1.0.0 group: generic
- def lastsaveL(): Task[Long]
Get the UNIX time stamp of the last successful save to disk
Get the UNIX time stamp of the last successful save to disk
- Since
Redis 1.0.0 group: server
- def lindexL(key: String, index: Int): Task[String]
Get an element from a list by its index
Get an element from a list by its index
- key
Key string
- index
Index of list element to get
- Since
Redis 1.0.0 group: list
- def linsertL(key: String, option: InsertOptions, pivot: String, value: String): Task[Long]
Insert an element before or after another element in a list
Insert an element before or after another element in a list
- key
Key string
- option
BEFORE or AFTER
- pivot
Key to use as a pivot
- value
Value to be inserted before or after the pivot
- Since
Redis 2.2.0 group: list
- def llenL(key: String): Task[Long]
Get the length of a list
Get the length of a list
- key
String key
- Since
Redis 1.0.0 group: list
- def lpopL(key: String): Task[String]
Remove and get the first element in a list
Remove and get the first element in a list
- key
String key
- Since
Redis 1.0.0 group: list
- def lpushL(key: String, value: String): Task[Long]
Prepend one value to a list
Prepend one value to a list
- key
Key string
- value
Value to be added at the beginning of the list
- Since
Redis 1.0.0 group: list
- def lpushManyL(key: String, values: List[String]): Task[Long]
Prepend one or multiple values to a list
Prepend one or multiple values to a list
- key
Key string
- values
Values to be added at the beginning of the list, one by one
- Since
Redis 1.0.0 group: list
- def lpushxL(key: String, value: String): Task[Long]
Prepend a value to a list, only if the list exists
Prepend a value to a list, only if the list exists
- key
Key string
- value
Value to add at the beginning of the list
- Since
Redis 2.2.0 group: list
- def lrangeL(key: String, from: Long, to: Long): Task[JsonArray]
Get a range of elements from a list
Get a range of elements from a list
- key
Key string
- from
Start index
- to
Stop index
- Since
Redis 1.0.0 group: list
- def lremL(key: String, count: Long, value: String): Task[Long]
Remove elements from a list
Remove elements from a list
- key
Key string
- count
Number of first found occurrences equal to $value to remove from the list
- value
Value to be removed
- Since
Redis 1.0.0 group: list
- def lsetL(key: String, index: Long, value: String): Task[String]
Set the value of an element in a list by its index
Set the value of an element in a list by its index
- key
Key string
- index
Position within list
- value
New value
- Since
Redis 1.0.0 group: list
- def ltrimL(key: String, from: Long, to: Long): Task[String]
Trim a list to the specified range
Trim a list to the specified range
- key
Key string
- from
Start index
- to
Stop index
- Since
Redis 1.0.0 group: list
- def mgetL(key: String): Task[JsonArray]
Get the value of the given key
Get the value of the given key
- key
Key string
- Since
Redis 1.0.0 group: string
- def mgetManyL(keys: List[String]): Task[JsonArray]
Get the values of all the given keys
Get the values of all the given keys
- keys
List of keys to get
- Since
Redis 1.0.0 group: string
- def migrateL(host: String, port: Int, key: String, destdb: Int, timeout: Long, options: MigrateOptions): Task[String]
Atomically transfer a key from a Redis instance to another one.
Atomically transfer a key from a Redis instance to another one.
- host
Destination host
- port
Destination port
- key
Key to migrate
- destdb
Destination database index
- options
Migrate options
- Since
Redis 2.6.0 group: generic
- def monitorL(): Task[Unit]
Listen for all requests received by the server in real time
Listen for all requests received by the server in real time
- Since
Redis 1.0.0 group: server
- def moveL(key: String, destdb: Int): Task[Long]
Move a key to another database
Move a key to another database
- key
Key to migrate
- destdb
Destination database index
- Since
Redis 1.0.0 group: generic
- def msetL(keyvals: JsonObject): Task[String]
Set multiple keys to multiple values
Set multiple keys to multiple values
- keyvals
Key value pairs to set
- Since
Redis 1.0.1 group: string
- def msetnxL(keyvals: JsonObject): Task[Long]
Set multiple keys to multiple values, only if none of the keys exist
Set multiple keys to multiple values, only if none of the keys exist
- keyvals
Key value pairs to set
- Since
Redis 1.0.1 group: string
- def objectL(key: String, cmd: ObjectCmd): Task[Unit]
Inspect the internals of Redis objects
Inspect the internals of Redis objects
- key
Key string
- cmd
Object sub command
- Since
Redis 2.2.3 group: generic
- def persistL(key: String): Task[Long]
Remove the expiration from a key
Remove the expiration from a key
- key
Key string
- Since
Redis 2.2.0 group: generic
- def pexpireL(key: String, millis: Long): Task[Long]
Set a key's time to live in milliseconds
Set a key's time to live in milliseconds
- key
String key
- millis
Time to live in milliseconds
- Since
Redis 2.6.0 group: generic
- def pexpireatL(key: String, millis: Long): Task[Long]
Set the expiration for a key as a UNIX timestamp specified in milliseconds
Set the expiration for a key as a UNIX timestamp specified in milliseconds
- key
Key string
- millis
Expiry time as Unix timestamp in milliseconds
- Since
Redis 2.6.0 group: generic
- def pfaddL(key: String, element: String): Task[Long]
Adds the specified element to the specified HyperLogLog.
Adds the specified element to the specified HyperLogLog.
- key
Key string
- element
Element to add
- Since
Redis 2.8.9 group: hyperloglog
- def pfaddManyL(key: String, elements: List[String]): Task[Long]
Adds the specified elements to the specified HyperLogLog.
Adds the specified elements to the specified HyperLogLog.
- key
Key string
- elements
Elementa to add
- Since
Redis 2.8.9 group: hyperloglog
- def pfcountL(key: String): Task[Long]
Return the approximated cardinality of the set observed by the HyperLogLog at key.
Return the approximated cardinality of the set observed by the HyperLogLog at key.
- key
Key string
- Since
Redis 2.8.9 group: hyperloglog
- def pfcountManyL(keys: List[String]): Task[Long]
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
- keys
List of keys
- Since
Redis 2.8.9 group: hyperloglog
- def pfmergeL(destkey: String, keys: List[String]): Task[String]
Merge N different HyperLogLogs into a single one.
Merge N different HyperLogLogs into a single one.
- destkey
Destination key
- keys
List of source keys
- Since
Redis 2.8.9 group: hyperloglog
- def pingL(): Task[String]
Ping the server
Ping the server
- Since
Redis 1.0.0 group: connection
- def psetexL(key: String, millis: Long, value: String): Task[Unit]
Set the value and expiration in milliseconds of a key
Set the value and expiration in milliseconds of a key
- key
Key string
- millis
Number of milliseconds until the key expires
- value
New value for key
- Since
Redis 2.6.0 group: string
- def psubscribeL(pattern: String): Task[JsonArray]
Listen for messages published to channels matching the given pattern
Listen for messages published to channels matching the given pattern
- pattern
Pattern string
- Since
Redis 2.0.0 group: pubsub
- def psubscribeManyL(patterns: List[String]): Task[JsonArray]
Listen for messages published to channels matching the given patterns
Listen for messages published to channels matching the given patterns
- patterns
List of patterns
- Since
Redis 2.0.0 group: pubsub
- def pttlL(key: String): Task[Long]
Get the time to live for a key in milliseconds
Get the time to live for a key in milliseconds
- key
Key string
- Since
Redis 2.6.0 group: generic
- def publishL(channel: String, message: String): Task[Long]
Post a message to a channel
Post a message to a channel
- channel
Channel key
- message
Message to send to channel
- Since
Redis 2.0.0 group: pubsub
- def pubsubChannelsL(pattern: String): Task[JsonArray]
Lists the currently active channels - only those matching the pattern
Lists the currently active channels - only those matching the pattern
- pattern
A glob-style pattern - an empty string means no pattern
- Since
Redis 2.8.0 group: pubsub
- def pubsubNumpatL(): Task[Long]
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command)
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command)
- Since
Redis 2.8.0 group: pubsub
- def pubsubNumsubL(channels: List[String]): Task[JsonArray]
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels
- channels
List of channels
- Since
Redis 2.8.0 group: pubsub
- def punsubscribeL(patterns: List[String]): Task[Unit]
Stop listening for messages posted to channels matching the given patterns
Stop listening for messages posted to channels matching the given patterns
- patterns
List of patterns to match against
- Since
Redis 2.0.0 group: pubsub
- def randomkeyL(): Task[String]
Return a random key from the keyspace
Return a random key from the keyspace
- Since
Redis 1.0.0 group: generic
- def renameL(key: String, newkey: String): Task[String]
Rename a key
Rename a key
- key
Key string to be renamed
- newkey
New key string
- Since
Redis 1.0.0 group: generic
- def renamenxL(key: String, newkey: String): Task[Long]
Rename a key, only if the new key does not exist
Rename a key, only if the new key does not exist
- key
Key string to be renamed
- newkey
New key string
- Since
Redis 1.0.0 group: generic
- def restoreL(key: String, millis: Long, serialized: String): Task[String]
Create a key using the provided serialized value, previously obtained using DUMP.
Create a key using the provided serialized value, previously obtained using DUMP.
- key
Key string
- millis
Expiry time in milliseconds to set on the key
- serialized
Serialized form of the key value as obtained using DUMP
- Since
Redis 2.6.0 group: generic
- def roleL(): Task[JsonArray]
Return the role of the instance in the context of replication
Return the role of the instance in the context of replication
- Since
Redis 2.8.12 group: server
- def rpopL(key: String): Task[String]
Remove and get the last element in a list
Remove and get the last element in a list
- key
Key string
- Since
Redis 1.0.0 group: list
- def rpoplpushL(key: String, destkey: String): Task[String]
Remove the last element in a list, append it to another list and return it
Remove the last element in a list, append it to another list and return it
- key
Key string identifying source list
- destkey
Key string identifying destination list
- Since
Redis 1.2.0 group: list
- def rpushL(key: String, value: String): Task[Long]
Append one or multiple values to a list
Append one or multiple values to a list
- key
Key string
- value
Value to be added to the end of the list
- Since
Redis 1.0.0 group: list
- def rpushManyL(key: String, values: List[String]): Task[Long]
Append one or multiple values to a list
Append one or multiple values to a list
- key
Key string
- values
List of values to add to the end of the list
- Since
Redis 1.0.0 group: list
- def rpushxL(key: String, value: String): Task[Long]
Append a value to a list, only if the list exists
Append a value to a list, only if the list exists
- key
Key string
- value
Value to be added to the end of the list
- Since
Redis 2.2.0 group: list
- def saddL(key: String, member: String): Task[Long]
Add a member to a set
Add a member to a set
- key
Key string
- member
Value to be added to the set
- Since
Redis 1.0.0 group: set
- def saddManyL(key: String, members: List[String]): Task[Long]
Add one or more members to a set
Add one or more members to a set
- key
Key string
- members
Values to be added to the set
- Since
Redis 1.0.0 group: set
- def saveL(): Task[String]
Synchronously save the dataset to disk
Synchronously save the dataset to disk
- Since
Redis 1.0.0 group: server
- def scanL(cursor: String, options: ScanOptions): Task[JsonArray]
Incrementally iterate the keys space
Incrementally iterate the keys space
- cursor
Cursor id
- options
Scan options
- Since
Redis 2.8.0 group: generic
- def scardL(key: String): Task[Long]
Get the number of members in a set
Get the number of members in a set
- key
Key string
- Since
Redis 1.0.0 group: set
- def scriptDebugL(scriptDebugOptions: ScriptDebugOptions): Task[String]
Set the debug mode for executed scripts.
Set the debug mode for executed scripts.
- scriptDebugOptions
the option
- Since
Redis 3.2.0 group: generic
- def scriptExistsL(script: String): Task[JsonArray]
Check existence of script in the script cache.
Check existence of script in the script cache.
- script
SHA1 digest identifying a script in the script cache
- Since
Redis 2.6.0 group: scripting
- def scriptExistsManyL(scripts: List[String]): Task[JsonArray]
Check existence of scripts in the script cache.
Check existence of scripts in the script cache.
- scripts
List of SHA1 digests identifying scripts in the script cache
- Since
Redis 2.6.0 group: scripting
- def scriptFlushL(): Task[String]
Remove all the scripts from the script cache.
Remove all the scripts from the script cache.
- Since
Redis 2.6.0 group: scripting
- def scriptKillL(): Task[String]
Kill the script currently in execution.
Kill the script currently in execution.
- Since
Redis 2.6.0 group: scripting
- def scriptLoadL(script: String): Task[String]
Load the specified Lua script into the script cache.
Load the specified Lua script into the script cache.
- script
Lua script
- Since
Redis 2.6.0 group: scripting
- def sdiffL(key: String, cmpkeys: List[String]): Task[JsonArray]
Subtract multiple sets
Subtract multiple sets
- key
Key identifying the set to compare with all other sets combined
- cmpkeys
List of keys identifying sets to subtract from the key set
- Since
Redis 1.0.0 group: set
- def sdiffstoreL(destkey: String, key: String, cmpkeys: List[String]): Task[Long]
Subtract multiple sets and store the resulting set in a key
Subtract multiple sets and store the resulting set in a key
- destkey
Destination key where the result should be stored
- key
Key identifying the set to compare with all other sets combined
- cmpkeys
List of keys identifying sets to subtract from the key set
- Since
Redis 1.0.0 group: set
- def selectL(dbindex: Int): Task[String]
Change the selected database for the current connection
Change the selected database for the current connection
- dbindex
Index identifying the new active database
- Since
Redis 1.0.0 group: connection
- def setBinaryL(key: String, value: Buffer): Task[Unit]
Set the binary string value of a key - without encoding as utf-8
Set the binary string value of a key - without encoding as utf-8
- key
Key of which value to set
- value
New value for the key
- Since
Redis 1.0.0 group: string
- def setBinaryWithOptionsL(key: String, value: Buffer, options: SetOptions): Task[Unit]
Set the string value of a key
Set the string value of a key
- key
Key of which value to set
- value
New value for the key
- options
Set options
- Since
Redis 1.0.0 group: string
- def setL(key: String, value: String): Task[Unit]
Set the string value of a key
Set the string value of a key
- key
Key of which value to set
- value
New value for the key
- Since
Redis 1.0.0 group: string
- def setWithOptionsL(key: String, value: String, options: SetOptions): Task[String]
Set the string value of a key
Set the string value of a key
- key
Key of which value to set
- value
New value for the key
- options
Set options
- Since
Redis 1.0.0 group: string
- def setbitL(key: String, offset: Long, bit: Int): Task[Long]
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
- key
Key string
- offset
Bit offset
- bit
New value - must be 1 or 0
- Since
Redis 2.2.0 group: string
- def setexL(key: String, seconds: Long, value: String): Task[String]
Set the value and expiration of a key
Set the value and expiration of a key
- key
Key string
- seconds
Number of seconds until the key expires
- value
New value for key
- Since
Redis 2.0.0 group: string
- def setnxL(key: String, value: String): Task[Long]
Set the value of a key, only if the key does not exist
Set the value of a key, only if the key does not exist
- key
Key of which value to set
- value
New value for the key
- Since
Redis 1.0.0 group: string
- def setrangeL(key: String, offset: Int, value: String): Task[Long]
Overwrite part of a string at key starting at the specified offset
Overwrite part of a string at key starting at the specified offset
- key
Key string
- offset
Offset - the maximum offset that you can set is 2^29 -1 (536870911), as Redis Strings are limited to 512 megabytes
- value
Value to overwrite with
- Since
Redis 2.2.0 group: string
- def sinterL(keys: List[String]): Task[JsonArray]
Intersect multiple sets
Intersect multiple sets
- keys
List of keys to perform intersection on
- Since
Redis 1.0.0 group: set
- def sinterstoreL(destkey: String, keys: List[String]): Task[Long]
Intersect multiple sets and store the resulting set in a key
Intersect multiple sets and store the resulting set in a key
- destkey
Key where to store the results
- keys
List of keys to perform intersection on
- Since
Redis 1.0.0 group: set
- def sismemberL(key: String, member: String): Task[Long]
Determine if a given value is a member of a set
Determine if a given value is a member of a set
- key
Key string
- member
Member to look for
- Since
Redis 1.0.0 group: set
- def slaveofL(host: String, port: Int): Task[String]
Make the server a slave of another instance
Make the server a slave of another instance
- host
Host to become this server's master
- port
Port of our new master
- Since
Redis 1.0.0 group: server
- def slaveofNooneL(): Task[String]
Make this server a master
Make this server a master
- Since
Redis 1.0.0 group: server
- def slowlogGetL(limit: Int): Task[JsonArray]
Read the Redis slow queries log
Read the Redis slow queries log
- limit
Number of log entries to return. If value is less than zero all entries are returned
- Since
Redis 2.2.12 group: server
- def slowlogLenL(): Task[Long]
Get the length of the Redis slow queries log
Get the length of the Redis slow queries log
- Since
Redis 2.2.12 group: server
- def slowlogResetL(): Task[Unit]
Reset the Redis slow queries log
Reset the Redis slow queries log
- Since
Redis 2.2.12 group: server
- def smembersL(key: String): Task[JsonArray]
Get all the members in a set
Get all the members in a set
- key
Key string
- Since
Redis 1.0.0 group: set
- def smoveL(key: String, destkey: String, member: String): Task[Long]
Move a member from one set to another
Move a member from one set to another
- key
Key of source set currently containing the member
- destkey
Key identifying the destination set
- member
Member to move
- Since
Redis 1.0.0 group: set
- def sortL(key: String, options: SortOptions): Task[JsonArray]
Sort the elements in a list, set or sorted set
Sort the elements in a list, set or sorted set
- key
Key string
- options
Sort options
- Since
Redis 1.0.0 group: generic
- def spopL(key: String): Task[String]
Remove and return a random member from a set
Remove and return a random member from a set
- key
Key string
- Since
Redis 1.0.0 group: set
- def spopManyL(key: String, count: Int): Task[JsonArray]
Remove and return random members from a set
Remove and return random members from a set
- key
Key string
- count
Number of members to remove
- Since
Redis 1.0.0 group: set
- def srandmemberCountL(key: String, count: Int): Task[JsonArray]
Get one or multiple random members from a set
Get one or multiple random members from a set
- key
Key string
- count
Number of members to get
- Since
Redis 1.0.0 group: set
- def srandmemberL(key: String): Task[String]
Get one or multiple random members from a set
Get one or multiple random members from a set
- key
Key string
- Since
Redis 1.0.0 group: set
- def sremL(key: String, member: String): Task[Long]
Remove one member from a set
Remove one member from a set
- key
Key string
- member
Member to remove
- Since
Redis 1.0.0 group: set
- def sremManyL(key: String, members: List[String]): Task[Long]
Remove one or more members from a set
Remove one or more members from a set
- key
Key string
- members
Members to remove
- Since
Redis 1.0.0 group: set
- def sscanL(key: String, cursor: String, options: ScanOptions): Task[JsonArray]
Incrementally iterate Set elements
Incrementally iterate Set elements
- key
Key string
- cursor
Cursor id
- options
Scan options
- Since
Redis 2.8.0 group: set
- def strlenL(key: String): Task[Long]
Get the length of the value stored in a key
Get the length of the value stored in a key
- key
Key string
- Since
Redis 2.2.0 group: string
- def subscribeL(channel: String): Task[JsonArray]
Listen for messages published to the given channels
Listen for messages published to the given channels
- channel
Channel to subscribe to
- Since
Redis 2.0.0 group: pubsub
- def subscribeManyL(channels: List[String]): Task[JsonArray]
Listen for messages published to the given channels
Listen for messages published to the given channels
- channels
List of channels to subscribe to
- Since
Redis 2.0.0 group: pubsub
- def sunionL(keys: List[String]): Task[JsonArray]
Add multiple sets
Add multiple sets
- keys
List of keys identifying sets to add up
- Since
Redis 1.0.0 group: set
- def sunionstoreL(destkey: String, keys: List[String]): Task[Long]
Add multiple sets and store the resulting set in a key
Add multiple sets and store the resulting set in a key
- destkey
Destination key
- keys
List of keys identifying sets to add up
- Since
Redis 1.0.0 group: set
- def swapdbL(index1: Int, index2: Int): Task[String]
Swaps two Redis databases
Swaps two Redis databases
- index1
index of first database to swap
- index2
index of second database to swap
- Since
Redis 4.0.0 group: connection
- def syncL(): Task[Unit]
Internal command used for replication
Internal command used for replication
- Since
Redis 1.0.0 group: server
- val target: RedisClient
- def timeL(): Task[JsonArray]
Return the current server time
Return the current server time
- Since
Redis 2.6.0 group: server
- def toString(): String
- Definition Classes
- Any
- def touchL(key: String): Task[Long]
Alters the last access time of a key(s).
Alters the last access time of a key(s). Returns the number of existing keys specified.
- key
Key String
- Since
Redis 3.2.1 group: generic
- def touchManyL(keys: List[String]): Task[Long]
Alters the last access time of a key(s).
Alters the last access time of a key(s). Returns the number of existing keys specified.
- keys
list of keys
- Since
Redis 3.2.1 group: generic
- def ttlL(key: String): Task[Long]
Get the time to live for a key
Get the time to live for a key
- key
Key string
- Since
Redis 1.0.0 group: generic
- def typeL(key: String): Task[String]
Determine the type stored at key
Determine the type stored at key
- key
Key string
- Since
Redis 1.0.0 group: generic
- def unlinkL(key: String): Task[Long]
Delete a key asynchronously in another thread.
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
- key
Key to delete
- Since
Redis 4.0.0 group: generic
- def unlinkManyL(keys: List[String]): Task[Long]
Delete multiple keys asynchronously in another thread.
Delete multiple keys asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
- keys
List of keys to delete
- Since
Redis 4.0.0 group: generic
- def unsubscribeL(channels: List[String]): Task[Unit]
Stop listening for messages posted to the given channels
Stop listening for messages posted to the given channels
- channels
List of channels to subscribe to
- Since
Redis 2.0.0 group: pubsub
- def waitL(numSlaves: Long, timeout: Long): Task[String]
Wait for the synchronous replication of all the write commands sent in the context of the current connection.
Wait for the synchronous replication of all the write commands sent in the context of the current connection.
- Since
Redis 3.0.0 group: generic
- def zaddL(key: String, score: Double, member: String): Task[Long]
Add one or more members to a sorted set, or update its score if it already exists
Add one or more members to a sorted set, or update its score if it already exists
- key
Key string
- score
Score used for sorting
- member
New member key
- Since
Redis 1.2.0 group: sorted_set
- def zaddManyL(key: String, members: Map[String, Double]): Task[Long]
Add one or more members to a sorted set, or update its score if it already exists
Add one or more members to a sorted set, or update its score if it already exists
- key
Key string
- members
New member keys and their scores
- Since
Redis 1.2.0 group: sorted_set
- def zcardL(key: String): Task[Long]
Get the number of members in a sorted set
Get the number of members in a sorted set
- key
Key string
- Since
Redis 1.2.0 group: sorted_set
- def zcountL(key: String, min: Double, max: Double): Task[Long]
Count the members in a sorted set with scores within the given values
Count the members in a sorted set with scores within the given values
- key
Key string
- min
Minimum score
- max
Maximum score
- Since
Redis 2.0.0 group: sorted_set
- def zincrbyL(key: String, increment: Double, member: String): Task[String]
Increment the score of a member in a sorted set
Increment the score of a member in a sorted set
- key
Key string
- increment
Increment amount
- member
Member key
- Since
Redis 1.2.0 group: sorted_set
- def zinterstoreL(destkey: String, sets: List[String], options: AggregateOptions): Task[Long]
Intersect multiple sorted sets and store the resulting sorted set in a new key
Intersect multiple sorted sets and store the resulting sorted set in a new key
- destkey
Destination key
- sets
List of keys identifying sorted sets to intersect
- options
Aggregation options
- Since
Redis 2.0.0 group: sorted_set
- def zinterstoreWeighedL(destkey: String, sets: Map[String, Double], options: AggregateOptions): Task[Long]
Intersect multiple sorted sets and store the resulting sorted set in a new key using weights for scoring
Intersect multiple sorted sets and store the resulting sorted set in a new key using weights for scoring
- destkey
Destination key
- sets
List of keys identifying sorted sets to intersect
- options
Aggregation options
- Since
Redis 2.0.0 group: sorted_set
- def zlexcountL(key: String, min: String, max: String): Task[Long]
Count the number of members in a sorted set between a given lexicographical range
Count the number of members in a sorted set between a given lexicographical range
- key
Key string
- min
Pattern to compare against for minimum value
- max
Pattern to compare against for maximum value
- Since
Redis 2.8.9 group: sorted_set
- def zrangeL(key: String, start: Long, stop: Long): Task[JsonArray]
Return a range of members in a sorted set, by index
Return a range of members in a sorted set, by index
- key
Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- Since
Redis 1.2.0 group: sorted_set
- def zrangeWithOptionsL(key: String, start: Long, stop: Long, options: RangeOptions): Task[JsonArray]
Return a range of members in a sorted set, by index
Return a range of members in a sorted set, by index
- key
Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- options
Range options
- Since
Redis 1.2.0 group: sorted_set
- def zrangebylexL(key: String, min: String, max: String, options: LimitOptions): Task[JsonArray]
Return a range of members in a sorted set, by lexicographical range
Return a range of members in a sorted set, by lexicographical range
- key
Key string
- min
Pattern representing a minimum allowed value
- max
Pattern representing a maximum allowed value
- options
Limit options where limit can be specified
- Since
Redis 2.8.9 group: sorted_set
- def zrangebyscoreL(key: String, min: String, max: String, options: RangeLimitOptions): Task[JsonArray]
Return a range of members in a sorted set, by score
Return a range of members in a sorted set, by score
- key
Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
- options
Range and limit options
- Since
Redis 1.0.5 group: sorted_set
- def zrankL(key: String, member: String): Task[Long]
Determine the index of a member in a sorted set
Determine the index of a member in a sorted set
- key
Key string
- member
Member in the sorted set identified by key
- Since
Redis 2.0.0 group: sorted_set
- def zremL(key: String, member: String): Task[Long]
Remove one member from a sorted set
Remove one member from a sorted set
- key
Key string
- member
Member in the sorted set identified by key
- Since
Redis 1.2.0 group: sorted_set
- def zremManyL(key: String, members: List[String]): Task[Long]
Remove one or more members from a sorted set
Remove one or more members from a sorted set
- key
Key string
- members
Members in the sorted set identified by key
- Since
Redis 1.2.0 group: sorted_set
- def zremrangebylexL(key: String, min: String, max: String): Task[Long]
Remove all members in a sorted set between the given lexicographical range
Remove all members in a sorted set between the given lexicographical range
- key
Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
- Since
Redis 2.8.9 group: sorted_set
- def zremrangebyrankL(key: String, start: Long, stop: Long): Task[Long]
Remove all members in a sorted set within the given indexes
Remove all members in a sorted set within the given indexes
- key
Key string
- start
Start index
- stop
Stop index
- Since
Redis 2.0.0 group: sorted_set
- def zremrangebyscoreL(key: String, min: String, max: String): Task[Long]
Remove all members in a sorted set within the given scores
Remove all members in a sorted set within the given scores
- key
Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
- Since
Redis 1.2.0 group: sorted_set
- def zrevrangeL(key: String, start: Long, stop: Long, options: RangeOptions): Task[JsonArray]
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 index, with scores ordered from high to low
- key
Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- options
Range options
- Since
Redis 1.2.0 group: sorted_set
- def zrevrangebylexL(key: String, max: String, min: String, options: LimitOptions): Task[JsonArray]
Return a range of members in a sorted set, by score, between the given lexicographical range with scores ordered from high to low
Return a range of members in a sorted set, by score, between the given lexicographical range with scores ordered from high to low
- key
Key string
- max
Pattern defining a maximum value
- min
Pattern defining a minimum value
- options
Limit options
- Since
Redis 2.8.9 group: sorted_set
- def zrevrangebyscoreL(key: String, max: String, min: String, options: RangeLimitOptions): Task[JsonArray]
Return a range of members in a sorted set, by score, 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
- key
Key string
- max
Pattern defining a maximum value
- min
Pattern defining a minimum value
- options
Range and limit options
- Since
Redis 2.2.0 group: sorted_set
- def zrevrankL(key: String, member: String): Task[Long]
Determine the index of a member in a sorted set, with scores ordered from high to low
Determine the index of a member in a sorted set, with scores ordered from high to low
- key
Key string
- member
Member in the sorted set identified by key
- Since
Redis 2.0.0 group: sorted_set
- def zscanL(key: String, cursor: String, options: ScanOptions): Task[JsonArray]
Incrementally iterate sorted sets elements and associated scores
Incrementally iterate sorted sets elements and associated scores
- key
Key string
- cursor
Cursor id
- options
Scan options
- Since
Redis 2.8.0 group: sorted_set
- def zscoreL(key: String, member: String): Task[String]
Get the score associated with the given member in a sorted set
Get the score associated with the given member in a sorted set
- key
Key string
- member
Member in the sorted set identified by key
- Since
Redis 1.2.0 group: sorted_set
- def zunionstoreL(destkey: String, sets: List[String], options: AggregateOptions): Task[Long]
Add multiple sorted sets and store the resulting sorted set in a new key
Add multiple sorted sets and store the resulting sorted set in a new key
- destkey
Destination key
- sets
List of keys identifying sorted sets
- options
Aggregation options
- Since
Redis 2.0.0 group: sorted_set
- def zunionstoreWeighedL(key: String, sets: Map[String, Double], options: AggregateOptions): Task[Long]
Add multiple sorted sets using weights, and store the resulting sorted set in a new key
Add multiple sorted sets using weights, and store the resulting sorted set in a new key
- key
Destination key
- sets
Map containing set-key:weight pairs
- options
Aggregation options
- Since
Redis 2.0.0 group: sorted_set