class RedisTransaction extends AnyRef
This Interface represents a TX
- Alphabetic
- By Inheritance
- RedisTransaction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RedisTransaction(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
append(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Append a value to a key * @param key Key string
Append a value to a key * @param key Key string
- value
Value to append
- handler
Handler for the result of this call.
-
def
appendFuture(key: String, value: String): Future[String]
Like append but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
auth(password: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Authenticate to the server * @param password Password for authentication
Authenticate to the server * @param password Password for authentication
- handler
Handler for the result of this call.
-
def
authFuture(password: String): Future[String]
Like auth but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bgrewriteaof(handler: Handler[AsyncResult[String]]): RedisTransaction
Asynchronously rewrite the append-only file
-
def
bgrewriteaofFuture(): Future[String]
Like bgrewriteaof but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bgsave(handler: Handler[AsyncResult[String]]): RedisTransaction
Asynchronously save the dataset to disk
-
def
bgsaveFuture(): Future[String]
Like bgsave but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitcount(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Count set bits in a string * @param key Key string
Count set bits in a string * @param key Key string
- handler
Handler for the result of this call.
-
def
bitcountFuture(key: String): Future[String]
Like bitcount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitcountRange(key: String, start: Long, end: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Count set bits in a string * @param key Key string
Count set bits in a string * @param key Key string
- start
Start index
- end
End index
- handler
Handler for the result of this call.
-
def
bitcountRangeFuture(key: String, start: Long, end: Long): Future[String]
Like bitcountRange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitop(operation: BitOperation, destkey: String, keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Perform bitwise operations between strings * @param operation Bitwise operation to perform
Perform bitwise operations between strings * @param operation Bitwise operation to perform
- destkey
Destination key where result is stored
- keys
List of keys on which to perform the operation
- handler
Handler for the result of this call.
-
def
bitopFuture(operation: BitOperation, destkey: String, keys: Buffer[String]): Future[String]
Like bitop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitpos(key: String, bit: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Find first bit set or clear in a string * @param key Key string
Find first bit set or clear in a string * @param key Key string
- bit
What bit value to look for - must be 1, or 0
- handler
Handler for the result of this call.
-
def
bitposFrom(key: String, bit: Int, start: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- bit
What bit value to look for - must be 1, or 0
- start
Start offset
- handler
Handler for the result of this call.
-
def
bitposFromFuture(key: String, bit: Int, start: Int): Future[String]
Like bitposFrom but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitposFuture(key: String, bit: Int): Future[String]
Like bitpos but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
bitposRange(key: String, bit: Int, start: Int, stop: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
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 * @param key Key string
- bit
What bit value to look for - must be 1, or 0
- start
Start offset
- stop
End offset - inclusive
- handler
Handler for the result of this call.
-
def
bitposRangeFuture(key: String, bit: Int, start: Int, stop: Int): Future[String]
Like bitposRange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
blpop(key: String, seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the first element in a list, or block until one is available * @param key Key string identifying a list to watch
Remove and get the first element in a list, or block until one is available * @param key Key string identifying a list to watch
- seconds
Timeout in seconds
- handler
Handler for the result of this call.
-
def
blpopFuture(key: String, seconds: Int): Future[String]
Like blpop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
blpopMany(keys: Buffer[String], seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the first element in any of the lists, or block until one is available * @param keys List of key strings identifying lists to watch
Remove and get the first element in any of the lists, or block until one is available * @param keys List of key strings identifying lists to watch
- seconds
Timeout in seconds
- handler
Handler for the result of this call.
-
def
blpopManyFuture(keys: Buffer[String], seconds: Int): Future[String]
Like blpopMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
brpop(key: String, seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the last element in a list, or block until one is available * @param key Key string identifying a list to watch
Remove and get the last element in a list, or block until one is available * @param key Key string identifying a list to watch
- seconds
Timeout in seconds
- handler
Handler for the result of this call.
-
def
brpopFuture(key: String, seconds: Int): Future[String]
Like brpop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
brpopMany(keys: Buffer[String], seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the last element in any of the lists, or block until one is available * @param keys List of key strings identifying lists to watch
Remove and get the last element in any of the lists, or block until one is available * @param keys List of key strings identifying lists to watch
- seconds
Timeout in seconds
- handler
Handler for the result of this call.
-
def
brpopManyFuture(keys: Buffer[String], seconds: Int): Future[String]
Like brpopMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
brpoplpush(key: String, destkey: String, seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Pop a value from a list, push it to another list and return it; or block until one is available * @param key Key string identifying the source list
Pop a value from a list, push it to another list and return it; or block until one is available * @param key Key string identifying the source list
- destkey
Key string identifying the destination list
- seconds
Timeout in seconds
- handler
Handler for the result of this call.
-
def
brpoplpushFuture(key: String, destkey: String, seconds: Int): Future[String]
Like brpoplpush but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clientGetname(handler: Handler[AsyncResult[String]]): RedisTransaction
Get the current connection name
-
def
clientGetnameFuture(): Future[String]
Like clientGetname but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clientKill(filter: KillFilter, handler: Handler[AsyncResult[String]]): RedisTransaction
Kill the connection of a client * @param filter Filter options see KillFilter
Kill the connection of a client * @param filter Filter options see KillFilter
- handler
Handler for the result of this call.
-
def
clientKillFuture(filter: KillFilter): Future[String]
Like clientKill but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clientList(handler: Handler[AsyncResult[String]]): RedisTransaction
Get the list of client connections
-
def
clientListFuture(): Future[String]
Like clientList but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clientPause(millis: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Stop processing commands from clients for some time * @param millis Pause time in milliseconds
Stop processing commands from clients for some time * @param millis Pause time in milliseconds
- handler
Handler for the result of this call.
-
def
clientPauseFuture(millis: Long): Future[String]
Like clientPause but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clientSetname(name: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the current connection name * @param name New name for current connection
Set the current connection name * @param name New name for current connection
- handler
Handler for the result of this call.
-
def
clientSetnameFuture(name: String): Future[String]
Like clientSetname but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(handler: Handler[AsyncResult[Unit]]): Unit
Close the client - when it is fully closed the handler will be called.
-
def
closeFuture(): Future[Unit]
Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterAddslots(slots: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Assign new hash slots to receiving node.
Assign new hash slots to receiving node. * @param handler Handler for the result of this call.
-
def
clusterAddslotsFuture(slots: Buffer[String]): Future[String]
Like clusterAddslots but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterCountFailureReports(nodeId: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Return the number of failure reports active for a given node.
Return the number of failure reports active for a given node. * @param handler Handler for the result of this call.
-
def
clusterCountFailureReportsFuture(nodeId: String): Future[String]
Like clusterCountFailureReports but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterCountkeysinslot(slot: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Return the number of local keys in the specified hash slot.
Return the number of local keys in the specified hash slot. * @param handler Handler for the result of this call.
-
def
clusterCountkeysinslotFuture(slot: Long): Future[String]
Like clusterCountkeysinslot but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterDelslots(slot: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Set hash slots as unbound in receiving node.
Set hash slots as unbound in receiving node. * @param handler Handler for the result of this call.
-
def
clusterDelslotsFuture(slot: Long): Future[String]
Like clusterDelslots but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterDelslotsMany(slots: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Set hash slots as unbound in receiving node.
Set hash slots as unbound in receiving node. * @param handler Handler for the result of this call.
-
def
clusterDelslotsManyFuture(slots: Buffer[String]): Future[String]
Like clusterDelslotsMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterFailOverWithOptions(options: FailoverOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master. * @param handler Handler for the result of this call.
-
def
clusterFailOverWithOptionsFuture(options: FailoverOptions): Future[String]
Like clusterFailOverWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterFailover(handler: Handler[AsyncResult[String]]): RedisTransaction
Forces a slave to perform a manual failover of its master.
Forces a slave to perform a manual failover of its master. * @param handler Handler for the result of this call.
-
def
clusterFailoverFuture(): Future[String]
Like clusterFailover but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterForget(nodeId: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove a node from the nodes table.
Remove a node from the nodes table. * @param handler Handler for the result of this call.
-
def
clusterForgetFuture(nodeId: String): Future[String]
Like clusterForget but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterGetkeysinslot(slot: Long, count: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Return local key names in the specified hash slot.
Return local key names in the specified hash slot. * @param handler Handler for the result of this call.
-
def
clusterGetkeysinslotFuture(slot: Long, count: Long): Future[String]
Like clusterGetkeysinslot but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterInfo(handler: Handler[AsyncResult[String]]): RedisTransaction
Provides info about Redis Cluster node state.
Provides info about Redis Cluster node state. * @param handler Handler for the result of this call.
-
def
clusterInfoFuture(): Future[String]
Like clusterInfo but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterKeyslot(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Returns the hash slot of the specified key.
Returns the hash slot of the specified key. * @param handler Handler for the result of this call.
-
def
clusterKeyslotFuture(key: String): Future[String]
Like clusterKeyslot but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterMeet(ip: String, port: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Force a node cluster to handshake with another node.
Force a node cluster to handshake with another node. * @param handler Handler for the result of this call.
-
def
clusterMeetFuture(ip: String, port: Long): Future[String]
Like clusterMeet but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterNodes(handler: Handler[AsyncResult[String]]): RedisTransaction
Get Cluster config for the node.
Get Cluster config for the node. * @param handler Handler for the result of this call.
-
def
clusterNodesFuture(): Future[String]
Like clusterNodes but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterReplicate(nodeId: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Reconfigure a node as a slave of the specified master node.
Reconfigure a node as a slave of the specified master node. * @param handler Handler for the result of this call.
-
def
clusterReplicateFuture(nodeId: String): Future[String]
Like clusterReplicate but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterReset(handler: Handler[AsyncResult[String]]): RedisTransaction
Reset a Redis Cluster node.
Reset a Redis Cluster node. * @param handler Handler for the result of this call.
-
def
clusterResetFuture(): Future[String]
Like clusterReset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterResetWithOptions(options: ResetOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Reset a Redis Cluster node.
Reset a Redis Cluster node. * @param handler Handler for the result of this call.
-
def
clusterResetWithOptionsFuture(options: ResetOptions): Future[String]
Like clusterResetWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSaveconfig(handler: Handler[AsyncResult[String]]): RedisTransaction
Forces the node to save cluster state on disk.
Forces the node to save cluster state on disk. * @param handler Handler for the result of this call.
-
def
clusterSaveconfigFuture(): Future[String]
Like clusterSaveconfig but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSetConfigEpoch(epoch: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the configuration epoch in a new node.
Set the configuration epoch in a new node. * @param handler Handler for the result of this call.
-
def
clusterSetConfigEpochFuture(epoch: Long): Future[String]
Like clusterSetConfigEpoch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSetslot(slot: Long, subcommand: SlotCmd, handler: Handler[AsyncResult[String]]): RedisTransaction
Bind an hash slot to a specific node.
Bind an hash slot to a specific node. * @param handler Handler for the result of this call.
-
def
clusterSetslotFuture(slot: Long, subcommand: SlotCmd): Future[String]
Like clusterSetslot but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSetslotWithNode(slot: Long, subcommand: SlotCmd, nodeId: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Bind an hash slot to a specific node.
Bind an hash slot to a specific node. * @param handler Handler for the result of this call.
-
def
clusterSetslotWithNodeFuture(slot: Long, subcommand: SlotCmd, nodeId: String): Future[String]
Like clusterSetslotWithNode but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSlaves(nodeId: String, handler: Handler[AsyncResult[String]]): RedisTransaction
List slave nodes of the specified master node.
List slave nodes of the specified master node. * @param handler Handler for the result of this call.
-
def
clusterSlavesFuture(nodeId: String): Future[String]
Like clusterSlaves but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
clusterSlots(handler: Handler[AsyncResult[String]]): RedisTransaction
Get array of Cluster slot to node mappings
-
def
clusterSlotsFuture(): Future[String]
Like clusterSlots but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
command(handler: Handler[AsyncResult[String]]): RedisTransaction
Get array of Redis command details
-
def
commandCount(handler: Handler[AsyncResult[String]]): RedisTransaction
Get total number of Redis commands
-
def
commandCountFuture(): Future[String]
Like commandCount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
commandFuture(): Future[String]
Like command but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
commandGetkeys(handler: Handler[AsyncResult[String]]): RedisTransaction
Extract keys given a full Redis command
-
def
commandGetkeysFuture(): Future[String]
Like commandGetkeys but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
commandInfo(commands: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Get array of specific Redis command details * @param commands List of commands to get info for
Get array of specific Redis command details * @param commands List of commands to get info for
- handler
Handler for the result of this call.
-
def
commandInfoFuture(commands: Buffer[String]): Future[String]
Like commandInfo but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
configGet(parameter: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the value of a configuration parameter * @param parameter Configuration parameter
Get the value of a configuration parameter * @param parameter Configuration parameter
- handler
Handler for the result of this call.
-
def
configGetFuture(parameter: String): Future[String]
Like configGet but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
configResetstat(handler: Handler[AsyncResult[String]]): RedisTransaction
Reset the stats returned by INFO
-
def
configResetstatFuture(): Future[String]
Like configResetstat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
configRewrite(handler: Handler[AsyncResult[String]]): RedisTransaction
Rewrite the configuration file with the in memory configuration
-
def
configRewriteFuture(): Future[String]
Like configRewrite but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
configSet(parameter: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set a configuration parameter to the given value * @param parameter Configuration parameter
Set a configuration parameter to the given value * @param parameter Configuration parameter
- value
New value
- handler
Handler for the result of this call.
-
def
configSetFuture(parameter: String, value: String): Future[String]
Like configSet but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
dbsize(handler: Handler[AsyncResult[String]]): RedisTransaction
Return the number of keys in the selected database
-
def
dbsizeFuture(): Future[String]
Like dbsize but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
debugObject(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get debugging information about a key * @param key Key string
Get debugging information about a key * @param key Key string
- handler
Handler for the result of this call.
-
def
debugObjectFuture(key: String): Future[String]
Like debugObject but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
debugSegfault(handler: Handler[AsyncResult[String]]): RedisTransaction
Make the server crash
-
def
debugSegfaultFuture(): Future[String]
Like debugSegfault but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
decr(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Decrement the integer value of a key by one * @param key Key string
Decrement the integer value of a key by one * @param key Key string
- handler
Handler for the result of this call.
-
def
decrFuture(key: String): Future[String]
Like decr but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
decrby(key: String, decrement: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Decrement the integer value of a key by the given number * @param key Key string
Decrement the integer value of a key by the given number * @param key Key string
- decrement
Value by which to decrement
- handler
Handler for the result of this call.
-
def
decrbyFuture(key: String, decrement: Long): Future[String]
Like decrby but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
del(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Delete a key * @param key Keys to delete
Delete a key * @param key Keys to delete
- handler
Handler for the result of this call.
-
def
delFuture(key: String): Future[String]
Like del but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
delMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Delete many keys * @param keys List of keys to delete
Delete many keys * @param keys List of keys to delete
- handler
Handler for the result of this call.
-
def
delManyFuture(keys: Buffer[String]): Future[String]
Like delMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
discard(handler: Handler[AsyncResult[String]]): RedisTransaction
Discard all commands issued after MULTI
-
def
discardFuture(): Future[String]
Like discard but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
dump(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a serialized version of the value stored at the specified key.
Return a serialized version of the value stored at the specified key. * @param key Key string
- handler
Handler for the result of this call.
-
def
dumpFuture(key: String): Future[String]
Like dump but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
echo(message: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Echo the given string * @param message String to echo
Echo the given string * @param message String to echo
- handler
Handler for the result of this call.
-
def
echoFuture(message: String): Future[String]
Like echo but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval(script: String, keys: Buffer[String], args: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param script Lua script to evaluate
- keys
List of keys
- args
List of argument values
- handler
Handler for the result of this call.
-
def
evalFuture(script: String, keys: Buffer[String], args: Buffer[String]): Future[String]
Like eval but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
evalsha(sha1: String, keys: Buffer[String], values: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param sha1 SHA1 digest of the script cached on the server
- keys
List of keys
- values
List of values
- handler
Handler for the result of this call.
-
def
evalshaFuture(sha1: String, keys: Buffer[String], values: Buffer[String]): Future[String]
Like evalsha but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
exec(handler: Handler[AsyncResult[JsonArray]]): RedisTransaction
Execute all commands issued after MULTI
-
def
execFuture(): Future[JsonArray]
Like exec but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
exists(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine if a key exists * @param key Key string
Determine if a key exists * @param key Key string
- handler
Handler for the result of this call.
-
def
existsFuture(key: String): Future[String]
Like exists but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
existsMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Determine if one or many keys exist * @param keys List of key strings
Determine if one or many keys exist * @param keys List of key strings
- handler
Handler for the result of this call.
-
def
existsManyFuture(keys: Buffer[String]): Future[String]
Like existsMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
expire(key: String, seconds: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Set a key's time to live in seconds * @param key Key string
Set a key's time to live in seconds * @param key Key string
- seconds
Time to live in seconds
- handler
Handler for the result of this call.
-
def
expireFuture(key: String, seconds: Int): Future[String]
Like expire but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
expireat(key: String, seconds: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the expiration for a key as a UNIX timestamp * @param key Key string
Set the expiration for a key as a UNIX timestamp * @param key Key string
- seconds
Expiry time as Unix timestamp in seconds
- handler
Handler for the result of this call.
-
def
expireatFuture(key: String, seconds: Long): Future[String]
Like expireat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flushall(handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all keys from all databases
-
def
flushallFuture(): Future[String]
Like flushall but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
flushdb(handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all keys from the current database
-
def
flushdbFuture(): Future[String]
Like flushdb but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geoadd(key: String, longitude: Double, latitude: Double, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- longitude
longitude
- latitude
latitude
- member
member
- handler
Handler for the result of this call.
-
def
geoaddFuture(key: String, longitude: Double, latitude: Double, member: String): Future[String]
Like geoadd but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geoaddMany(key: String, members: Buffer[GeoMember], handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- members
list of <lon, lat, member>
- handler
Handler for the result of this call.
-
def
geoaddManyFuture(key: String, members: Buffer[GeoMember]): Future[String]
Like geoaddMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geodist(key: String, member1: String, member2: String, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- member1
member 1
- member2
member 2
- handler
Handler for the result of this call.
-
def
geodistFuture(key: String, member1: String, member2: String): Future[String]
Like geodist but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geodistWithUnit(key: String, member1: String, member2: String, unit: GeoUnit, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- member1
member 1
- member2
member 2
- unit
geo unit
- handler
Handler for the result of this call.
-
def
geodistWithUnitFuture(key: String, member1: String, member2: String, unit: GeoUnit): Future[String]
Like geodistWithUnit but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geohash(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
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). * @param key Key string
- member
member
- handler
Handler for the result of this call.
-
def
geohashFuture(key: String, member: String): Future[String]
Like geohash but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geohashMany(key: String, members: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
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). * @param key Key string
- members
list of members
- handler
Handler for the result of this call.
-
def
geohashManyFuture(key: String, members: Buffer[String]): Future[String]
Like geohashMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geopos(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- member
member
- handler
Handler for the result of this call.
-
def
geoposFuture(key: String, member: String): Future[String]
Like geopos but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
geoposMany(key: String, members: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- members
list of members
- handler
Handler for the result of this call.
-
def
geoposManyFuture(key: String, members: Buffer[String]): Future[String]
Like geoposMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
georadius(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit, handler: Handler[AsyncResult[String]]): RedisTransaction
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). * @param key Key string
- longitude
longitude
- latitude
latitude
- radius
radius
- unit
geo unit
- handler
Handler for the result of this call.
-
def
georadiusFuture(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit): Future[String]
Like georadius but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
georadiusWithOptions(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit, options: GeoRadiusOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
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). * @param key Key string
- longitude
longitude
- latitude
latitude
- radius
radius
- unit
geo unit
- options
geo radius options see GeoRadiusOptions
- handler
Handler for the result of this call.
-
def
georadiusWithOptionsFuture(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): Future[String]
Like georadiusWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
georadiusbymember(key: String, member: String, radius: Double, unit: GeoUnit, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- member
member
- radius
radius
- unit
geo unit
- handler
Handler for the result of this call.
-
def
georadiusbymemberFuture(key: String, member: String, radius: Double, unit: GeoUnit): Future[String]
Like georadiusbymember but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
georadiusbymemberWithOptions(key: String, member: String, radius: Double, unit: GeoUnit, options: GeoRadiusOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- member
member
- radius
radius
- unit
geo unit
- options
geo radius options see GeoRadiusOptions
- handler
Handler for the result of this call.
-
def
georadiusbymemberWithOptionsFuture(key: String, member: String, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): Future[String]
Like georadiusbymemberWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
get(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the value of a key * @param key Key string
Get the value of a key * @param key Key string
- handler
Handler for the result of this call.
-
def
getBinary(key: String, handler: Handler[AsyncResult[Buffer]]): RedisTransaction
Get the value of a key - without decoding as utf-8 * @param key Key string
Get the value of a key - without decoding as utf-8 * @param key Key string
- handler
Handler for the result of this call.
-
def
getBinaryFuture(key: String): Future[Buffer]
Like getBinary but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFuture(key: String): Future[String]
Like get but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
getbit(key: String, offset: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Returns the bit value at offset in the string value stored at key * @param key Key string
Returns the bit value at offset in the string value stored at key * @param key Key string
- offset
Offset in bits
- handler
Handler for the result of this call.
-
def
getbitFuture(key: String, offset: Long): Future[String]
Like getbit but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
getrange(key: String, start: Long, end: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Get a substring of the string stored at a key * @param key Key string
Get a substring of the string stored at a key * @param key Key string
- start
Start offset
- end
End offset - inclusive
- handler
Handler for the result of this call.
-
def
getrangeFuture(key: String, start: Long, end: Long): Future[String]
Like getrange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
getset(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the string value of a key and return its old value * @param key Key of which value to set
Set the string value of a key and return its old value * @param key Key of which value to set
- value
New value for the key
- handler
Handler for the result of this call.
-
def
getsetFuture(key: String, value: String): Future[String]
Like getset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hdel(key: String, field: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Delete one or more hash fields * @param key Key string
Delete one or more hash fields * @param key Key string
- field
Field name
- handler
Handler for the result of this call.
-
def
hdelFuture(key: String, field: String): Future[String]
Like hdel but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hdelMany(key: String, fields: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Delete one or more hash fields * @param key Key string
Delete one or more hash fields * @param key Key string
- fields
Field names
- handler
Handler for the result of this call.
-
def
hdelManyFuture(key: String, fields: Buffer[String]): Future[String]
Like hdelMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hexists(key: String, field: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine if a hash field exists * @param key Key string
Determine if a hash field exists * @param key Key string
- field
Field name
- handler
Handler for the result of this call.
-
def
hexistsFuture(key: String, field: String): Future[String]
Like hexists but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hget(key: String, field: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the value of a hash field * @param key Key string
Get the value of a hash field * @param key Key string
- field
Field name
- handler
Handler for the result of this call.
-
def
hgetFuture(key: String, field: String): Future[String]
Like hget but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hgetall(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get all the fields and values in a hash * @param key Key string
Get all the fields and values in a hash * @param key Key string
- handler
Handler for the result of this call.
-
def
hgetallFuture(key: String): Future[String]
Like hgetall but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hincrby(key: String, field: String, increment: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the integer value of a hash field by the given number * @param key Key string
Increment the integer value of a hash field by the given number * @param key Key string
- field
Field name
- increment
Value by which to increment
- handler
Handler for the result of this call.
-
def
hincrbyFuture(key: String, field: String, increment: Long): Future[String]
Like hincrby but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hincrbyfloat(key: String, field: String, increment: Double, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the float value of a hash field by the given amount * @param key Key string
Increment the float value of a hash field by the given amount * @param key Key string
- field
Field name
- increment
Value by which to increment
- handler
Handler for the result of this call.
-
def
hincrbyfloatFuture(key: String, field: String, increment: Double): Future[String]
Like hincrbyfloat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hkeys(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get all the fields in a hash * @param key Key string
Get all the fields in a hash * @param key Key string
- handler
Handler for the result of this call.
-
def
hkeysFuture(key: String): Future[String]
Like hkeys but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hlen(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the number of fields in a hash * @param key Key string
Get the number of fields in a hash * @param key Key string
- handler
Handler for the result of this call.
-
def
hlenFuture(key: String): Future[String]
Like hlen but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hmget(key: String, fields: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Get the values of all the given hash fields * @param key Key string
Get the values of all the given hash fields * @param key Key string
- fields
Field names
- handler
Handler for the result of this call.
-
def
hmgetFuture(key: String, fields: Buffer[String]): Future[String]
Like hmget but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hmset(key: String, values: JsonObject, handler: Handler[AsyncResult[String]]): RedisTransaction
Set multiple hash fields to multiple values * @param key Key string
Set multiple hash fields to multiple values * @param key Key string
- values
Map of field:value pairs
- handler
Handler for the result of this call.
-
def
hmsetFuture(key: String, values: JsonObject): Future[String]
Like hmset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hscan(key: String, cursor: String, options: ScanOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Incrementally iterate hash fields and associated values * @param key Key string
Incrementally iterate hash fields and associated values * @param key Key string
- cursor
Cursor id
- options
Scan options see ScanOptions
- handler
Handler for the result of this call.
-
def
hscanFuture(key: String, cursor: String, options: ScanOptions): Future[String]
Like hscan but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hset(key: String, field: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the string value of a hash field * @param key Key string
Set the string value of a hash field * @param key Key string
- field
Field name
- value
New value
- handler
Handler for the result of this call.
-
def
hsetFuture(key: String, field: String, value: String): Future[String]
Like hset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hsetnx(key: String, field: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the value of a hash field, only if the field does not exist * @param key Key string
Set the value of a hash field, only if the field does not exist * @param key Key string
- field
Field name
- value
New value
- handler
Handler for the result of this call.
-
def
hsetnxFuture(key: String, field: String, value: String): Future[String]
Like hsetnx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
hvals(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get all the values in a hash * @param key Key string
Get all the values in a hash * @param key Key string
- handler
Handler for the result of this call.
-
def
hvalsFuture(key: String): Future[String]
Like hvals but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
incr(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the integer value of a key by one * @param key Key string
Increment the integer value of a key by one * @param key Key string
- handler
Handler for the result of this call.
-
def
incrFuture(key: String): Future[String]
Like incr but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
incrby(key: String, increment: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the integer value of a key by the given amount * @param key Key string
Increment the integer value of a key by the given amount * @param key Key string
- increment
Value by which to increment
- handler
Handler for the result of this call.
-
def
incrbyFuture(key: String, increment: Long): Future[String]
Like incrby but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
incrbyfloat(key: String, increment: Double, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the float value of a key by the given amount * @param key Key string
Increment the float value of a key by the given amount * @param key Key string
- increment
Value by which to increment
- handler
Handler for the result of this call.
-
def
incrbyfloatFuture(key: String, increment: Double): Future[String]
Like incrbyfloat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
info(handler: Handler[AsyncResult[String]]): RedisTransaction
Get information and statistics about the server * @param handler Handler for the result of this call.
-
def
infoFuture(): Future[String]
Like info but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
infoSection(section: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get information and statistics about the server * @param section Specific section of information to return
Get information and statistics about the server * @param section Specific section of information to return
- handler
Handler for the result of this call.
-
def
infoSectionFuture(section: String): Future[String]
Like infoSection but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keys(pattern: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Find all keys matching the given pattern * @param pattern Pattern to limit the keys returned
Find all keys matching the given pattern * @param pattern Pattern to limit the keys returned
- handler
Handler for the result of this call.
-
def
keysFuture(pattern: String): Future[String]
Like keys but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lastsave(handler: Handler[AsyncResult[String]]): RedisTransaction
Get the UNIX time stamp of the last successful save to disk
-
def
lastsaveFuture(): Future[String]
Like lastsave but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lindex(key: String, index: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Get an element from a list by its index * @param key Key string
Get an element from a list by its index * @param key Key string
- index
Index of list element to get
- handler
Handler for the result of this call.
-
def
lindexFuture(key: String, index: Int): Future[String]
Like lindex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
linsert(key: String, option: InsertOptions, pivot: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Insert an element before or after another element in a list * @param key Key string
Insert an element before or after another element in a list * @param key Key string
- option
BEFORE or AFTER
- pivot
Key to use as a pivot
- value
Value to be inserted before or after the pivot
- handler
Handler for the result of this call.
-
def
linsertFuture(key: String, option: InsertOptions, pivot: String, value: String): Future[String]
Like linsert but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
llen(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the length of a list * @param key String key
Get the length of a list * @param key String key
- handler
Handler for the result of this call.
-
def
llenFuture(key: String): Future[String]
Like llen but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lpop(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the first element in a list * @param key String key
Remove and get the first element in a list * @param key String key
- handler
Handler for the result of this call.
-
def
lpopFuture(key: String): Future[String]
Like lpop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lpush(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Prepend one value to a list * @param key Key string
Prepend one value to a list * @param key Key string
- value
Value to be added at the beginning of the list
- handler
Handler for the result of this call.
-
def
lpushFuture(key: String, value: String): Future[String]
Like lpush but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lpushMany(key: String, values: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Prepend one or multiple values to a list * @param key Key string
Prepend one or multiple values to a list * @param key Key string
- values
Values to be added at the beginning of the list, one by one
- handler
Handler for the result of this call.
-
def
lpushManyFuture(key: String, values: Buffer[String]): Future[String]
Like lpushMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lpushx(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Prepend a value to a list, only if the list exists * @param key Key string
Prepend a value to a list, only if the list exists * @param key Key string
- value
Value to add at the beginning of the list
- handler
Handler for the result of this call.
-
def
lpushxFuture(key: String, value: String): Future[String]
Like lpushx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lrange(key: String, from: Long, to: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Get a range of elements from a list * @param key Key string
Get a range of elements from a list * @param key Key string
- from
Start index
- to
Stop index
- handler
Handler for the result of this call.
-
def
lrangeFuture(key: String, from: Long, to: Long): Future[String]
Like lrange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lrem(key: String, count: Long, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove elements from a list * @param key Key string
Remove elements from a list * @param key Key string
- count
Number of first found occurrences equal to $value to remove from the list
- value
Value to be removed
- handler
Handler for the result of this call.
-
def
lremFuture(key: String, count: Long, value: String): Future[String]
Like lrem but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lset(key: String, index: Long, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the value of an element in a list by its index * @param key Key string
Set the value of an element in a list by its index * @param key Key string
- index
Position within list
- value
New value
- handler
Handler for the result of this call.
-
def
lsetFuture(key: String, index: Long, value: String): Future[String]
Like lset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
ltrim(key: String, from: Long, to: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Trim a list to the specified range * @param key Key string
Trim a list to the specified range * @param key Key string
- from
Start index
- to
Stop index
- handler
Handler for the result of this call.
-
def
ltrimFuture(key: String, from: Long, to: Long): Future[String]
Like ltrim but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
mget(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the value of the given key * @param key Key string
Get the value of the given key * @param key Key string
- handler
Handler for the result of this call.
-
def
mgetFuture(key: String): Future[String]
Like mget but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
mgetMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Get the values of all the given keys * @param keys List of keys to get
Get the values of all the given keys * @param keys List of keys to get
- handler
Handler for the result of this call.
-
def
mgetManyFuture(keys: Buffer[String]): Future[String]
Like mgetMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
migrate(host: String, port: Int, key: String, destdb: Int, timeout: Long, options: MigrateOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Atomically transfer a key from a Redis instance to another one.
Atomically transfer a key from a Redis instance to another one. * @param host Destination host
- port
Destination port
- key
Key to migrate
- destdb
Destination database index
- options
Migrate options see MigrateOptions
- handler
Handler for the result of this call.
-
def
migrateFuture(host: String, port: Int, key: String, destdb: Int, timeout: Long, options: MigrateOptions): Future[String]
Like migrate but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
monitor(handler: Handler[AsyncResult[String]]): RedisTransaction
Listen for all requests received by the server in real time
-
def
monitorFuture(): Future[String]
Like monitor but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
move(key: String, destdb: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Move a key to another database * @param key Key to migrate
Move a key to another database * @param key Key to migrate
- destdb
Destination database index
- handler
Handler for the result of this call.
-
def
moveFuture(key: String, destdb: Int): Future[String]
Like move but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
mset(keyvals: JsonObject, handler: Handler[AsyncResult[String]]): RedisTransaction
Set multiple keys to multiple values * @param keyvals Key value pairs to set
Set multiple keys to multiple values * @param keyvals Key value pairs to set
- handler
Handler for the result of this call.
-
def
msetFuture(keyvals: JsonObject): Future[String]
Like mset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
msetnx(keyvals: JsonObject, handler: Handler[AsyncResult[String]]): RedisTransaction
Set multiple keys to multiple values, only if none of the keys exist * @param keyvals Key value pairs to set
Set multiple keys to multiple values, only if none of the keys exist * @param keyvals Key value pairs to set
- handler
Handler for the result of this call.
-
def
msetnxFuture(keyvals: JsonObject): Future[String]
Like msetnx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
multi(handler: Handler[AsyncResult[String]]): RedisTransaction
Mark the start of a RedisTransaction block
-
def
multiFuture(): Future[String]
Like multi but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
object(key: String, cmd: ObjectCmd, handler: Handler[AsyncResult[String]]): RedisTransaction
Inspect the internals of Redis objects * @param key Key string
Inspect the internals of Redis objects * @param key Key string
- cmd
Object sub command
- handler
Handler for the result of this call.
-
def
objectFuture(key: String, cmd: ObjectCmd): Future[String]
Like object but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
persist(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove the expiration from a key * @param key Key string
Remove the expiration from a key * @param key Key string
- handler
Handler for the result of this call.
-
def
persistFuture(key: String): Future[String]
Like persist but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pexpire(key: String, millis: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Set a key's time to live in milliseconds * @param key String key
Set a key's time to live in milliseconds * @param key String key
- millis
Time to live in milliseconds
- handler
Handler for the result of this call.
-
def
pexpireFuture(key: String, millis: Long): Future[String]
Like pexpire but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pexpireat(key: String, millis: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the expiration for a key as a UNIX timestamp specified in milliseconds * @param key Key string
Set the expiration for a key as a UNIX timestamp specified in milliseconds * @param key Key string
- millis
Expiry time as Unix timestamp in milliseconds
- handler
Handler for the result of this call.
-
def
pexpireatFuture(key: String, millis: Long): Future[String]
Like pexpireat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pfadd(key: String, element: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Adds the specified element to the specified HyperLogLog.
Adds the specified element to the specified HyperLogLog. * @param key Key string
- element
Element to add
- handler
Handler for the result of this call.
-
def
pfaddFuture(key: String, element: String): Future[String]
Like pfadd but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pfaddMany(key: String, elements: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Adds the specified elements to the specified HyperLogLog.
Adds the specified elements to the specified HyperLogLog. * @param key Key string
- elements
Elementa to add
- handler
Handler for the result of this call.
-
def
pfaddManyFuture(key: String, elements: Buffer[String]): Future[String]
Like pfaddMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pfcount(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param key Key string
- handler
Handler for the result of this call.
-
def
pfcountFuture(key: String): Future[String]
Like pfcount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pfcountMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
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). * @param keys List of keys
- handler
Handler for the result of this call.
-
def
pfcountManyFuture(keys: Buffer[String]): Future[String]
Like pfcountMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pfmerge(destkey: String, keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Merge N different HyperLogLogs into a single one.
Merge N different HyperLogLogs into a single one. * @param destkey Destination key
- keys
List of source keys
- handler
Handler for the result of this call.
-
def
pfmergeFuture(destkey: String, keys: Buffer[String]): Future[String]
Like pfmerge but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
ping(handler: Handler[AsyncResult[String]]): RedisTransaction
Ping the server
-
def
pingFuture(): Future[String]
Like ping but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
psetex(key: String, millis: Long, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the value and expiration in milliseconds of a key * @param key Key string
Set the value and expiration in milliseconds of a key * @param key Key string
- millis
Number of milliseconds until the key expires
- value
New value for key
- handler
Handler for the result of this call.
-
def
psetexFuture(key: String, millis: Long, value: String): Future[String]
Like psetex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
psubscribe(pattern: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Listen for messages published to channels matching the given pattern * @param pattern Pattern string
Listen for messages published to channels matching the given pattern * @param pattern Pattern string
- handler
Handler for the result of this call.
-
def
psubscribeFuture(pattern: String): Future[String]
Like psubscribe but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
psubscribeMany(patterns: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Listen for messages published to channels matching the given patterns * @param patterns List of patterns
Listen for messages published to channels matching the given patterns * @param patterns List of patterns
- handler
Handler for the result of this call.
-
def
psubscribeManyFuture(patterns: Buffer[String]): Future[String]
Like psubscribeMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pttl(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the time to live for a key in milliseconds * @param key Key string
Get the time to live for a key in milliseconds * @param key Key string
- handler
Handler for the result of this call.
-
def
pttlFuture(key: String): Future[String]
Like pttl but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
publish(channel: String, message: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Post a message to a channel * @param channel Channel key
Post a message to a channel * @param channel Channel key
- message
Message to send to channel
- handler
Handler for the result of this call.
-
def
publishFuture(channel: String, message: String): Future[String]
Like publish but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pubsubChannels(pattern: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Lists the currently active channels - only those matching the pattern * @param pattern A glob-style pattern - an empty string means no pattern
Lists the currently active channels - only those matching the pattern * @param pattern A glob-style pattern - an empty string means no pattern
- handler
Handler for the result of this call.
-
def
pubsubChannelsFuture(pattern: String): Future[String]
Like pubsubChannels but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pubsubNumpat(handler: Handler[AsyncResult[String]]): RedisTransaction
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command) * @param handler Handler for the result of this call.
-
def
pubsubNumpatFuture(): Future[String]
Like pubsubNumpat but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
pubsubNumsub(channels: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels * @param channels List of channels
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels * @param channels List of channels
- handler
Handler for the result of this call.
-
def
pubsubNumsubFuture(channels: Buffer[String]): Future[String]
Like pubsubNumsub but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
punsubscribe(patterns: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Stop listening for messages posted to channels matching the given patterns * @param patterns List of patterns to match against
Stop listening for messages posted to channels matching the given patterns * @param patterns List of patterns to match against
- handler
Handler for the result of this call.
-
def
punsubscribeFuture(patterns: Buffer[String]): Future[String]
Like punsubscribe but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
randomkey(handler: Handler[AsyncResult[String]]): RedisTransaction
Return a random key from the keyspace
-
def
randomkeyFuture(): Future[String]
Like randomkey but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rename(key: String, newkey: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Rename a key * @param key Key string to be renamed
Rename a key * @param key Key string to be renamed
- newkey
New key string
- handler
Handler for the result of this call.
-
def
renameFuture(key: String, newkey: String): Future[String]
Like rename but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
renamenx(key: String, newkey: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Rename a key, only if the new key does not exist * @param key Key string to be renamed
Rename a key, only if the new key does not exist * @param key Key string to be renamed
- newkey
New key string
- handler
Handler for the result of this call.
-
def
renamenxFuture(key: String, newkey: String): Future[String]
Like renamenx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
restore(key: String, millis: Long, serialized: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Create a key using the provided serialized value, previously obtained using DUMP.
Create a key using the provided serialized value, previously obtained using DUMP. * @param key Key string
- millis
Expiry time in milliseconds to set on the key
- serialized
Serialized form of the key value as obtained using DUMP
- handler
Handler for the result of this call.
-
def
restoreFuture(key: String, millis: Long, serialized: String): Future[String]
Like restore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
role(handler: Handler[AsyncResult[String]]): RedisTransaction
Return the role of the instance in the context of replication
-
def
roleFuture(): Future[String]
Like role but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rpop(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and get the last element in a list * @param key Key string
Remove and get the last element in a list * @param key Key string
- handler
Handler for the result of this call.
-
def
rpopFuture(key: String): Future[String]
Like rpop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rpoplpush(key: String, destkey: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove the last element in a list, append it to another list and return it * @param key Key string identifying source list
Remove the last element in a list, append it to another list and return it * @param key Key string identifying source list
- destkey
Key string identifying destination list
- handler
Handler for the result of this call.
-
def
rpoplpushFuture(key: String, destkey: String): Future[String]
Like rpoplpush but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rpush(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Append one or multiple values to a list * @param key Key string
Append one or multiple values to a list * @param key Key string
- value
Value to be added to the end of the list
- handler
Handler for the result of this call.
-
def
rpushFuture(key: String, value: String): Future[String]
Like rpush but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rpushMany(key: String, values: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Append one or multiple values to a list * @param key Key string
Append one or multiple values to a list * @param key Key string
- values
List of values to add to the end of the list
- handler
Handler for the result of this call.
-
def
rpushManyFuture(key: String, values: Buffer[String]): Future[String]
Like rpushMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
rpushx(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Append a value to a list, only if the list exists * @param key Key string
Append a value to a list, only if the list exists * @param key Key string
- value
Value to be added to the end of the list
- handler
Handler for the result of this call.
-
def
rpushxFuture(key: String, value: String): Future[String]
Like rpushx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sadd(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Add a member to a set * @param key Key string
Add a member to a set * @param key Key string
- member
Value to be added to the set
- handler
Handler for the result of this call.
-
def
saddFuture(key: String, member: String): Future[String]
Like sadd but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
saddMany(key: String, members: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Add one or more members to a set * @param key Key string
Add one or more members to a set * @param key Key string
- members
Values to be added to the set
- handler
Handler for the result of this call.
-
def
saddManyFuture(key: String, members: Buffer[String]): Future[String]
Like saddMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
save(handler: Handler[AsyncResult[String]]): RedisTransaction
Synchronously save the dataset to disk
-
def
saveFuture(): Future[String]
Like save but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scan(cursor: String, options: ScanOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Incrementally iterate the keys space * @param cursor Cursor id
Incrementally iterate the keys space * @param cursor Cursor id
- options
Scan options see ScanOptions
- handler
Handler for the result of this call.
-
def
scanFuture(cursor: String, options: ScanOptions): Future[String]
Like scan but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scard(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the number of members in a set * @param key Key string
Get the number of members in a set * @param key Key string
- handler
Handler for the result of this call.
-
def
scardFuture(key: String): Future[String]
Like scard but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scriptExists(script: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Check existence of script in the script cache.
Check existence of script in the script cache. * @param script SHA1 digest identifying a script in the script cache
- handler
Handler for the result of this call.
-
def
scriptExistsFuture(script: String): Future[String]
Like scriptExists but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scriptExistsMany(scripts: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Check existence of scripts in the script cache.
Check existence of scripts in the script cache. * @param scripts List of SHA1 digests identifying scripts in the script cache
- handler
Handler for the result of this call.
-
def
scriptExistsManyFuture(scripts: Buffer[String]): Future[String]
Like scriptExistsMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scriptFlush(handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all the scripts from the script cache.
-
def
scriptFlushFuture(): Future[String]
Like scriptFlush but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scriptKill(handler: Handler[AsyncResult[String]]): RedisTransaction
Kill the script currently in execution.
-
def
scriptKillFuture(): Future[String]
Like scriptKill but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
scriptLoad(script: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Load the specified Lua script into the script cache.
Load the specified Lua script into the script cache. * @param script Lua script
- handler
Handler for the result of this call.
-
def
scriptLoadFuture(script: String): Future[String]
Like scriptLoad but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sdiff(key: String, cmpkeys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Subtract multiple sets * @param key Key identifying the set to compare with all other sets combined
Subtract multiple sets * @param key Key identifying the set to compare with all other sets combined
- cmpkeys
List of keys identifying sets to subtract from the key set
- handler
Handler for the result of this call.
-
def
sdiffFuture(key: String, cmpkeys: Buffer[String]): Future[String]
Like sdiff but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sdiffstore(destkey: String, key: String, cmpkeys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Subtract multiple sets and store the resulting set in a key * @param destkey Destination key where the result should be stored
Subtract multiple sets and store the resulting set in a key * @param 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
- handler
Handler for the result of this call.
-
def
sdiffstoreFuture(destkey: String, key: String, cmpkeys: Buffer[String]): Future[String]
Like sdiffstore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
select(dbindex: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Change the selected database for the current connection * @param dbindex Index identifying the new active database
Change the selected database for the current connection * @param dbindex Index identifying the new active database
- handler
Handler for the result of this call.
-
def
selectFuture(dbindex: Int): Future[String]
Like select but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
set(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the string value of a key * @param key Key of which value to set
Set the string value of a key * @param key Key of which value to set
- value
New value for the key
- handler
Handler for the result of this call.
-
def
setBinary(key: String, value: Buffer, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the binary string value of a key - without encoding as utf-8 * @param key Key of which value to set
Set the binary string value of a key - without encoding as utf-8 * @param key Key of which value to set
- value
New value for the key
- handler
Handler for the result of this call.
-
def
setBinaryFuture(key: String, value: Buffer): Future[String]
Like setBinary but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setBinaryWithOptions(key: String, value: Buffer, options: SetOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the string value of a key * @param key Key of which value to set
Set the string value of a key * @param key Key of which value to set
- value
New value for the key
- options
Set options see SetOptions
- handler
Handler for the result of this call.
-
def
setBinaryWithOptionsFuture(key: String, value: Buffer, options: SetOptions): Future[String]
Like setBinaryWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setFuture(key: String, value: String): Future[String]
Like set but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setWithOptions(key: String, value: String, options: SetOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the string value of a key * @param key Key of which value to set
Set the string value of a key * @param key Key of which value to set
- value
New value for the key
- options
Set options see SetOptions
- handler
Handler for the result of this call.
-
def
setWithOptionsFuture(key: String, value: String, options: SetOptions): Future[String]
Like setWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setbit(key: String, offset: Long, bit: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Sets or clears the bit at offset in the string value stored at key * @param key Key string
Sets or clears the bit at offset in the string value stored at key * @param key Key string
- offset
Bit offset
- bit
New value - must be 1 or 0
- handler
Handler for the result of this call.
-
def
setbitFuture(key: String, offset: Long, bit: Int): Future[String]
Like setbit but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setex(key: String, seconds: Long, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the value and expiration of a key * @param key Key string
Set the value and expiration of a key * @param key Key string
- seconds
Number of seconds until the key expires
- value
New value for key
- handler
Handler for the result of this call.
-
def
setexFuture(key: String, seconds: Long, value: String): Future[String]
Like setex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setnx(key: String, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Set the value of a key, only if the key does not exist * @param key Key of which value to set
Set the value of a key, only if the key does not exist * @param key Key of which value to set
- value
New value for the key
- handler
Handler for the result of this call.
-
def
setnxFuture(key: String, value: String): Future[String]
Like setnx but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
setrange(key: String, offset: Int, value: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Overwrite part of a string at key starting at the specified offset * @param key Key string
Overwrite part of a string at key starting at the specified offset * @param 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
- handler
Handler for the result of this call.
-
def
setrangeFuture(key: String, offset: Int, value: String): Future[String]
Like setrange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sinter(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Intersect multiple sets * @param keys List of keys to perform intersection on
Intersect multiple sets * @param keys List of keys to perform intersection on
- handler
Handler for the result of this call.
-
def
sinterFuture(keys: Buffer[String]): Future[String]
Like sinter but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sinterstore(destkey: String, keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Intersect multiple sets and store the resulting set in a key * @param destkey Key where to store the results
Intersect multiple sets and store the resulting set in a key * @param destkey Key where to store the results
- keys
List of keys to perform intersection on
- handler
Handler for the result of this call.
-
def
sinterstoreFuture(destkey: String, keys: Buffer[String]): Future[String]
Like sinterstore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sismember(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine if a given value is a member of a set * @param key Key string
Determine if a given value is a member of a set * @param key Key string
- member
Member to look for
- handler
Handler for the result of this call.
-
def
sismemberFuture(key: String, member: String): Future[String]
Like sismember but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
slaveof(host: String, port: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Make the server a slave of another instance * @param host Host to become this server's master
Make the server a slave of another instance * @param host Host to become this server's master
- port
Port of our new master
- handler
Handler for the result of this call.
-
def
slaveofFuture(host: String, port: Int): Future[String]
Like slaveof but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
slaveofNoone(handler: Handler[AsyncResult[String]]): RedisTransaction
Make this server a master * @param handler Handler for the result of this call.
-
def
slaveofNooneFuture(): Future[String]
Like slaveofNoone but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
slowlogGet(limit: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Read the Redis slow queries log * @param limit Number of log entries to return.
Read the Redis slow queries log * @param limit Number of log entries to return. If value is less than zero all entries are returned
- handler
Handler for the result of this call.
-
def
slowlogGetFuture(limit: Int): Future[String]
Like slowlogGet but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
slowlogLen(handler: Handler[AsyncResult[String]]): RedisTransaction
Get the length of the Redis slow queries log * @param handler Handler for the result of this call.
-
def
slowlogLenFuture(): Future[String]
Like slowlogLen but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
slowlogReset(handler: Handler[AsyncResult[String]]): RedisTransaction
Reset the Redis slow queries log * @param handler Handler for the result of this call.
-
def
slowlogResetFuture(): Future[String]
Like slowlogReset but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
smembers(key: String, handler: Handler[AsyncResult[JsonArray]]): RedisTransaction
Get all the members in a set * @param key Key string
Get all the members in a set * @param key Key string
- handler
Handler for the result of this call.
-
def
smembersFuture(key: String): Future[JsonArray]
Like smembers but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
smove(key: String, destkey: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Move a member from one set to another * @param key Key of source set currently containing the member
Move a member from one set to another * @param key Key of source set currently containing the member
- destkey
Key identifying the destination set
- member
Member to move
- handler
Handler for the result of this call.
-
def
smoveFuture(key: String, destkey: String, member: String): Future[String]
Like smove but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sort(key: String, options: SortOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Sort the elements in a list, set or sorted set * @param key Key string
Sort the elements in a list, set or sorted set * @param key Key string
- options
Sort options see SortOptions
- handler
Handler for the result of this call.
-
def
sortFuture(key: String, options: SortOptions): Future[String]
Like sort but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
spop(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and return a random member from a set * @param key Key string
Remove and return a random member from a set * @param key Key string
- handler
Handler for the result of this call.
-
def
spopFuture(key: String): Future[String]
Like spop but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
spopMany(key: String, count: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove and return random members from a set * @param key Key string
Remove and return random members from a set * @param key Key string
- count
Number of members to remove
- handler
Handler for the result of this call.
-
def
spopManyFuture(key: String, count: Int): Future[String]
Like spopMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
srandmember(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get one or multiple random members from a set * @param key Key string
Get one or multiple random members from a set * @param key Key string
- handler
Handler for the result of this call.
-
def
srandmemberCount(key: String, count: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Get one or multiple random members from a set * @param key Key string
Get one or multiple random members from a set * @param key Key string
- count
Number of members to get
- handler
Handler for the result of this call.
-
def
srandmemberCountFuture(key: String, count: Int): Future[String]
Like srandmemberCount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
srandmemberFuture(key: String): Future[String]
Like srandmember but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
srem(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove one member from a set * @param key Key string
Remove one member from a set * @param key Key string
- member
Member to remove
- handler
Handler for the result of this call.
-
def
sremFuture(key: String, member: String): Future[String]
Like srem but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sremMany(key: String, members: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Remove one or more members from a set * @param key Key string
Remove one or more members from a set * @param key Key string
- members
Members to remove
- handler
Handler for the result of this call.
-
def
sremManyFuture(key: String, members: Buffer[String]): Future[String]
Like sremMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sscan(key: String, cursor: String, options: ScanOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Incrementally iterate Set elements * @param key Key string
Incrementally iterate Set elements * @param key Key string
- cursor
Cursor id
- options
Scan options see ScanOptions
- handler
Handler for the result of this call.
-
def
sscanFuture(key: String, cursor: String, options: ScanOptions): Future[String]
Like sscan but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
strlen(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the length of the value stored in a key * @param key Key string
Get the length of the value stored in a key * @param key Key string
- handler
Handler for the result of this call.
-
def
strlenFuture(key: String): Future[String]
Like strlen but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
subscribe(channel: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Listen for messages published to the given channels * @param channel Channel to subscribe to
Listen for messages published to the given channels * @param channel Channel to subscribe to
- handler
Handler for the result of this call.
-
def
subscribeFuture(channel: String): Future[String]
Like subscribe but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
subscribeMany(channels: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Listen for messages published to the given channels * @param channels List of channels to subscribe to
Listen for messages published to the given channels * @param channels List of channels to subscribe to
- handler
Handler for the result of this call.
-
def
subscribeManyFuture(channels: Buffer[String]): Future[String]
Like subscribeMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sunion(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Add multiple sets * @param keys List of keys identifying sets to add up
Add multiple sets * @param keys List of keys identifying sets to add up
- handler
Handler for the result of this call.
-
def
sunionFuture(keys: Buffer[String]): Future[String]
Like sunion but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sunionstore(destkey: String, keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Add multiple sets and store the resulting set in a key * @param destkey Destination key
Add multiple sets and store the resulting set in a key * @param destkey Destination key
- keys
List of keys identifying sets to add up
- handler
Handler for the result of this call.
-
def
sunionstoreFuture(destkey: String, keys: Buffer[String]): Future[String]
Like sunionstore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
swapdb(index1: Int, index2: Int, handler: Handler[AsyncResult[String]]): RedisTransaction
Swaps two Redis databases * @param index1 index of first database to swap
Swaps two Redis databases * @param index1 index of first database to swap
- index2
index of second database to swap
- handler
Handler for the result of this call.
-
def
swapdbFuture(index1: Int, index2: Int): Future[String]
Like swapdb but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
sync(handler: Handler[AsyncResult[String]]): RedisTransaction
Internal command used for replication
-
def
syncFuture(): Future[String]
Like sync but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
time(handler: Handler[AsyncResult[String]]): RedisTransaction
Return the current server time
-
def
timeFuture(): Future[String]
Like time but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
ttl(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the time to live for a key * @param key Key string
Get the time to live for a key * @param key Key string
- handler
Handler for the result of this call.
-
def
ttlFuture(key: String): Future[String]
Like ttl but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
type(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine the type stored at key * @param key Key string
Determine the type stored at key * @param key Key string
- handler
Handler for the result of this call.
-
def
typeFuture(key: String): Future[String]
Like type but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
unlink(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Delete a key asynchronously in another thread.
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking. * @param key Key string
-
def
unlinkFuture(key: String): Future[String]
Like unlink but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
unlinkMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Delete multiple keys asynchronously in another thread.
Delete multiple keys asynchronously in another thread. Otherwise it is just as DEL, but non blocking. * @param keys List of keys to delete
- handler
Handler for the result of this call.
-
def
unlinkManyFuture(keys: Buffer[String]): Future[String]
Like unlinkMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
unsubscribe(channels: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Stop listening for messages posted to the given channels * @param channels List of channels to subscribe to
Stop listening for messages posted to the given channels * @param channels List of channels to subscribe to
- handler
Handler for the result of this call.
-
def
unsubscribeFuture(channels: Buffer[String]): Future[String]
Like unsubscribe but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
unwatch(handler: Handler[AsyncResult[String]]): RedisTransaction
Forget about all watched keys
-
def
unwatchFuture(): Future[String]
Like unwatch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
wait(numSlaves: Long, timeout: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
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. * @param handler Handler for the result of this call.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
waitFuture(numSlaves: Long, timeout: Long): Future[String]
Like wait but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
watch(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Watch the given keys to determine execution of the MULTI/EXEC block * @param key Key to watch
Watch the given keys to determine execution of the MULTI/EXEC block * @param key Key to watch
- handler
Handler for the result of this call.
-
def
watchFuture(key: String): Future[String]
Like watch but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
watchMany(keys: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Watch the given keys to determine execution of the MULTI/EXEC block * @param keys List of keys to watch
Watch the given keys to determine execution of the MULTI/EXEC block * @param keys List of keys to watch
- handler
Handler for the result of this call.
-
def
watchManyFuture(keys: Buffer[String]): Future[String]
Like watchMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zadd(key: String, score: Double, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Add one or more members to a sorted set, or update its score if it already exists * @param key Key string
Add one or more members to a sorted set, or update its score if it already exists * @param key Key string
- score
Score used for sorting
- member
New member key
- handler
Handler for the result of this call.
-
def
zaddFuture(key: String, score: Double, member: String): Future[String]
Like zadd but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zaddMany(key: String, members: Map[String, Double], handler: Handler[AsyncResult[String]]): RedisTransaction
Add one or more members to a sorted set, or update its score if it already exists * @param key Key string
Add one or more members to a sorted set, or update its score if it already exists * @param key Key string
- members
New member keys and their scores
- handler
Handler for the result of this call.
-
def
zaddManyFuture(key: String, members: Map[String, Double]): Future[String]
Like zaddMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zcard(key: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the number of members in a sorted set * @param key Key string
Get the number of members in a sorted set * @param key Key string
- handler
Handler for the result of this call.
-
def
zcardFuture(key: String): Future[String]
Like zcard but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zcount(key: String, min: Double, max: Double, handler: Handler[AsyncResult[String]]): RedisTransaction
Count the members in a sorted set with scores within the given values * @param key Key string
Count the members in a sorted set with scores within the given values * @param key Key string
- min
Minimum score
- max
Maximum score
- handler
Handler for the result of this call.
-
def
zcountFuture(key: String, min: Double, max: Double): Future[String]
Like zcount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zincrby(key: String, increment: Double, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Increment the score of a member in a sorted set * @param key Key string
Increment the score of a member in a sorted set * @param key Key string
- increment
Increment amount
- member
Member key
- handler
Handler for the result of this call.
-
def
zincrbyFuture(key: String, increment: Double, member: String): Future[String]
Like zincrby but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zinterstore(destkey: String, sets: Buffer[String], options: AggregateOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Intersect multiple sorted sets and store the resulting sorted set in a new key * @param destkey Destination key
Intersect multiple sorted sets and store the resulting sorted set in a new key * @param destkey Destination key
- sets
List of keys identifying sorted sets to intersect
- options
Aggregation options
- handler
Handler for the result of this call.
-
def
zinterstoreFuture(destkey: String, sets: Buffer[String], options: AggregateOptions): Future[String]
Like zinterstore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zinterstoreWeighed(destkey: String, sets: Map[String, Double], options: AggregateOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Intersect multiple sorted sets and store the resulting sorted set in a new key using weights for scoring * @param destkey Destination key
Intersect multiple sorted sets and store the resulting sorted set in a new key using weights for scoring * @param destkey Destination key
- sets
List of keys identifying sorted sets to intersect
- options
Aggregation options
- handler
Handler for the result of this call.
-
def
zinterstoreWeighedFuture(destkey: String, sets: Map[String, Double], options: AggregateOptions): Future[String]
Like zinterstoreWeighed but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zlexcount(key: String, min: String, max: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Count the number of members in a sorted set between a given lexicographical range * @param key Key string
Count the number of members in a sorted set between a given lexicographical range * @param key Key string
- min
Pattern to compare against for minimum value
- max
Pattern to compare against for maximum value
- handler
Handler for the result of this call.
-
def
zlexcountFuture(key: String, min: String, max: String): Future[String]
Like zlexcount but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrange(key: String, start: Long, stop: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by index * @param key Key string
Return a range of members in a sorted set, by index * @param key Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- handler
Handler for the result of this call.
-
def
zrangeFuture(key: String, start: Long, stop: Long): Future[String]
Like zrange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrangeWithOptions(key: String, start: Long, stop: Long, options: RangeOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by index * @param key Key string
Return a range of members in a sorted set, by index * @param key Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- options
Range options
- handler
Handler for the result of this call.
-
def
zrangeWithOptionsFuture(key: String, start: Long, stop: Long, options: RangeOptions): Future[String]
Like zrangeWithOptions but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrangebylex(key: String, min: String, max: String, options: LimitOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by lexicographical range * @param key Key string
Return a range of members in a sorted set, by lexicographical range * @param 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 see LimitOptions
- handler
Handler for the result of this call.
-
def
zrangebylexFuture(key: String, min: String, max: String, options: LimitOptions): Future[String]
Like zrangebylex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrangebyscore(key: String, min: String, max: String, options: RangeLimitOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by score * @param key Key string
Return a range of members in a sorted set, by score * @param key Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
- options
Range and limit options see RangeLimitOptions
- handler
Handler for the result of this call.
-
def
zrangebyscoreFuture(key: String, min: String, max: String, options: RangeLimitOptions): Future[String]
Like zrangebyscore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrank(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine the index of a member in a sorted set * @param key Key string
Determine the index of a member in a sorted set * @param key Key string
- member
Member in the sorted set identified by key
- handler
Handler for the result of this call.
-
def
zrankFuture(key: String, member: String): Future[String]
Like zrank but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrem(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove one member from a sorted set * @param key Key string
Remove one member from a sorted set * @param key Key string
- member
Member in the sorted set identified by key
- handler
Handler for the result of this call.
-
def
zremFuture(key: String, member: String): Future[String]
Like zrem but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zremMany(key: String, members: Buffer[String], handler: Handler[AsyncResult[String]]): RedisTransaction
Remove one or more members from a sorted set * @param key Key string
Remove one or more members from a sorted set * @param key Key string
- members
Members in the sorted set identified by key
- handler
Handler for the result of this call.
-
def
zremManyFuture(key: String, members: Buffer[String]): Future[String]
Like zremMany but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zremrangebylex(key: String, min: String, max: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all members in a sorted set between the given lexicographical range * @param key Key string
Remove all members in a sorted set between the given lexicographical range * @param key Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
- handler
Handler for the result of this call.
-
def
zremrangebylexFuture(key: String, min: String, max: String): Future[String]
Like zremrangebylex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zremrangebyrank(key: String, start: Long, stop: Long, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all members in a sorted set within the given indexes * @param key Key string
Remove all members in a sorted set within the given indexes * @param key Key string
- start
Start index
- stop
Stop index
- handler
Handler for the result of this call.
-
def
zremrangebyrankFuture(key: String, start: Long, stop: Long): Future[String]
Like zremrangebyrank but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zremrangebyscore(key: String, min: String, max: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Remove all members in a sorted set within the given scores * @param key Key string
Remove all members in a sorted set within the given scores * @param key Key string
- min
Pattern defining a minimum value
- max
Pattern defining a maximum value
-
def
zremrangebyscoreFuture(key: String, min: String, max: String): Future[String]
Like zremrangebyscore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrevrange(key: String, start: Long, stop: Long, options: RangeOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by index, with scores ordered from high to low * @param key Key string
Return a range of members in a sorted set, by index, with scores ordered from high to low * @param key Key string
- start
Start index for the range
- stop
Stop index for the range - inclusive
- options
Range options
- handler
Handler for the result of this call.
-
def
zrevrangeFuture(key: String, start: Long, stop: Long, options: RangeOptions): Future[String]
Like zrevrange but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrevrangebylex(key: String, max: String, min: String, options: LimitOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by score, between the given lexicographical range with scores ordered from high to low * @param key Key string
Return a range of members in a sorted set, by score, between the given lexicographical range with scores ordered from high to low * @param key Key string
- max
Pattern defining a maximum value
- min
Pattern defining a minimum value
- options
Limit options see LimitOptions
- handler
Handler for the result of this call.
-
def
zrevrangebylexFuture(key: String, max: String, min: String, options: LimitOptions): Future[String]
Like zrevrangebylex but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrevrangebyscore(key: String, max: String, min: String, options: RangeLimitOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Return a range of members in a sorted set, by score, with scores ordered from high to low * @param key Key string
Return a range of members in a sorted set, by score, with scores ordered from high to low * @param key Key string
- max
Pattern defining a maximum value
- min
Pattern defining a minimum value
- options
Range and limit options see RangeLimitOptions
- handler
Handler for the result of this call.
-
def
zrevrangebyscoreFuture(key: String, max: String, min: String, options: RangeLimitOptions): Future[String]
Like zrevrangebyscore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zrevrank(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Determine the index of a member in a sorted set, with scores ordered from high to low * @param key Key string
Determine the index of a member in a sorted set, with scores ordered from high to low * @param key Key string
- member
Member in the sorted set identified by key
- handler
Handler for the result of this call.
-
def
zrevrankFuture(key: String, member: String): Future[String]
Like zrevrank but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zscan(key: String, cursor: String, options: ScanOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Incrementally iterate sorted sets elements and associated scores * @param key Key string
Incrementally iterate sorted sets elements and associated scores * @param key Key string
- cursor
Cursor id
- options
Scan options see ScanOptions
- handler
Handler for the result of this call.
-
def
zscanFuture(key: String, cursor: String, options: ScanOptions): Future[String]
Like zscan but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zscore(key: String, member: String, handler: Handler[AsyncResult[String]]): RedisTransaction
Get the score associated with the given member in a sorted set * @param key Key string
Get the score associated with the given member in a sorted set * @param key Key string
- member
Member in the sorted set identified by key
- handler
Handler for the result of this call.
-
def
zscoreFuture(key: String, member: String): Future[String]
Like zscore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zunionstore(destkey: String, sets: Buffer[String], options: AggregateOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Add multiple sorted sets and store the resulting sorted set in a new key * @param destkey Destination key
Add multiple sorted sets and store the resulting sorted set in a new key * @param destkey Destination key
- sets
List of keys identifying sorted sets
- options
Aggregation options
- handler
Handler for the result of this call.
-
def
zunionstoreFuture(destkey: String, sets: Buffer[String], options: AggregateOptions): Future[String]
Like zunionstore but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
zunionstoreWeighed(key: String, sets: Map[String, Double], options: AggregateOptions, handler: Handler[AsyncResult[String]]): RedisTransaction
Add multiple sorted sets using weights, and store the resulting sorted set in a new key * @param key Destination key
Add multiple sorted sets using weights, and store the resulting sorted set in a new key * @param key Destination key
- sets
Map containing set-key:weight pairs
- options
Aggregation options
- handler
Handler for the result of this call.
-
def
zunionstoreWeighedFuture(key: String, sets: Map[String, Double], options: AggregateOptions): Future[String]
Like zunionstoreWeighed but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.