vertx / io.vertx.redis / RedisTransaction

RedisTransaction

interface RedisTransaction

This Interface represents a TX

Functions

append

abstract fun append(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Append a value to a key

auth

abstract fun auth(password: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Authenticate to the server

bgrewriteaof

abstract fun bgrewriteaof(handler: Handler<AsyncResult<String>>): RedisTransaction

Asynchronously rewrite the append-only file

bgsave

abstract fun bgsave(handler: Handler<AsyncResult<String>>): RedisTransaction

Asynchronously save the dataset to disk

bitcount

abstract fun bitcount(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Count set bits in a string

bitcountRange

abstract fun bitcountRange(key: String, start: Long, end: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Count set bits in a string

bitop

abstract fun bitop(operation: BitOperation, destkey: String, keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Perform bitwise operations between strings

bitpos

abstract fun bitpos(key: String, bit: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Find first bit set or clear in a string

bitposFrom

abstract fun bitposFrom(key: String, bit: Int, start: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Find first bit set or clear in a string

See also bitposRange() method, which takes start, and stop offset.

bitposRange

abstract fun bitposRange(key: String, bit: Int, start: Int, stop: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

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

blpop

abstract fun 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

blpopMany

abstract fun blpopMany(keys: MutableList<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

brpop

abstract fun 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

brpopMany

abstract fun brpopMany(keys: MutableList<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

brpoplpush

abstract fun 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

clientGetname

abstract fun clientGetname(handler: Handler<AsyncResult<String>>): RedisTransaction

Get the current connection name

clientKill

abstract fun clientKill(filter: KillFilter, handler: Handler<AsyncResult<String>>): RedisTransaction

Kill the connection of a client

clientList

abstract fun clientList(handler: Handler<AsyncResult<String>>): RedisTransaction

Get the list of client connections

clientPause

abstract fun clientPause(millis: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Stop processing commands from clients for some time

clientSetname

abstract fun clientSetname(name: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the current connection name

close

abstract fun close(handler: Handler<AsyncResult<Void>>): Unit

Close the client - when it is fully closed the handler will be called.

clusterAddslots

abstract fun clusterAddslots(slots: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Assign new hash slots to receiving node.

clusterCountFailureReports

abstract fun clusterCountFailureReports(nodeId: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Return the number of failure reports active for a given node.

clusterCountkeysinslot

abstract fun clusterCountkeysinslot(slot: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Return the number of local keys in the specified hash slot.

clusterDelslots

abstract fun clusterDelslots(slot: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Set hash slots as unbound in receiving node.

clusterDelslotsMany

abstract fun clusterDelslotsMany(slots: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Set hash slots as unbound in receiving node.

clusterFailOverWithOptions

abstract fun clusterFailOverWithOptions(options: FailoverOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Forces a slave to perform a manual failover of its master.

clusterFailover

abstract fun clusterFailover(handler: Handler<AsyncResult<String>>): RedisTransaction

Forces a slave to perform a manual failover of its master.

clusterForget

abstract fun clusterForget(nodeId: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove a node from the nodes table.

clusterGetkeysinslot

abstract fun clusterGetkeysinslot(slot: Long, count: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Return local key names in the specified hash slot.

clusterInfo

abstract fun clusterInfo(handler: Handler<AsyncResult<String>>): RedisTransaction

Provides info about Redis Cluster node state.

clusterKeyslot

abstract fun clusterKeyslot(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Returns the hash slot of the specified key.

clusterMeet

abstract fun clusterMeet(ip: String, port: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Force a node cluster to handshake with another node.

clusterNodes

abstract fun clusterNodes(handler: Handler<AsyncResult<String>>): RedisTransaction

Get Cluster config for the node.

clusterReplicate

abstract fun clusterReplicate(nodeId: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Reconfigure a node as a slave of the specified master node.

clusterReset

abstract fun clusterReset(handler: Handler<AsyncResult<String>>): RedisTransaction

Reset a Redis Cluster node.

clusterResetWithOptions

abstract fun clusterResetWithOptions(options: ResetOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Reset a Redis Cluster node.

clusterSaveconfig

abstract fun clusterSaveconfig(handler: Handler<AsyncResult<String>>): RedisTransaction

Forces the node to save cluster state on disk.

clusterSetConfigEpoch

abstract fun clusterSetConfigEpoch(epoch: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the configuration epoch in a new node.

clusterSetslot

abstract fun clusterSetslot(slot: Long, subcommand: SlotCmd, handler: Handler<AsyncResult<String>>): RedisTransaction

Bind an hash slot to a specific node.

clusterSetslotWithNode

abstract fun clusterSetslotWithNode(slot: Long, subcommand: SlotCmd, nodeId: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Bind an hash slot to a specific node.

clusterSlaves

abstract fun clusterSlaves(nodeId: String, handler: Handler<AsyncResult<String>>): RedisTransaction

List slave nodes of the specified master node.

clusterSlots

abstract fun clusterSlots(handler: Handler<AsyncResult<String>>): RedisTransaction

Get array of Cluster slot to node mappings

command

abstract fun command(handler: Handler<AsyncResult<String>>): RedisTransaction

Get array of Redis command details

commandCount

abstract fun commandCount(handler: Handler<AsyncResult<String>>): RedisTransaction

Get total number of Redis commands

commandGetkeys

abstract fun commandGetkeys(handler: Handler<AsyncResult<String>>): RedisTransaction

Extract keys given a full Redis command

commandInfo

abstract fun commandInfo(commands: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Get array of specific Redis command details

configGet

abstract fun configGet(parameter: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the value of a configuration parameter

configResetstat

abstract fun configResetstat(handler: Handler<AsyncResult<String>>): RedisTransaction

Reset the stats returned by INFO

configRewrite

abstract fun configRewrite(handler: Handler<AsyncResult<String>>): RedisTransaction

Rewrite the configuration file with the in memory configuration

configSet

abstract fun configSet(parameter: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set a configuration parameter to the given value

dbsize

abstract fun dbsize(handler: Handler<AsyncResult<String>>): RedisTransaction

Return the number of keys in the selected database

debugObject

abstract fun debugObject(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get debugging information about a key

debugSegfault

abstract fun debugSegfault(handler: Handler<AsyncResult<String>>): RedisTransaction

Make the server crash

decr

abstract fun decr(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Decrement the integer value of a key by one

decrby

abstract fun decrby(key: String, decrement: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Decrement the integer value of a key by the given number

del

abstract fun del(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete a key

delMany

abstract fun delMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete many keys

discard

abstract fun discard(handler: Handler<AsyncResult<String>>): RedisTransaction

Discard all commands issued after MULTI

dump

abstract fun dump(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Return a serialized version of the value stored at the specified key.

echo

abstract fun echo(message: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Echo the given string

eval

abstract fun eval(script: String, keys: MutableList<String>, args: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

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.

evalsha

abstract fun evalsha(sha1: String, keys: MutableList<String>, values: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

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.

exec

abstract fun exec(handler: Handler<AsyncResult<JsonArray>>): RedisTransaction

Execute all commands issued after MULTI

exists

abstract fun exists(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine if a key exists

existsMany

abstract fun existsMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine if one or many keys exist

expire

abstract fun expire(key: String, seconds: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Set a key's time to live in seconds

expireat

abstract fun expireat(key: String, seconds: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the expiration for a key as a UNIX timestamp

flushall

abstract fun flushall(handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all keys from all databases

flushdb

abstract fun flushdb(handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all keys from the current database

geoadd

abstract fun 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.

geoaddMany

abstract fun geoaddMany(key: String, members: MutableList<GeoMember>, handler: Handler<AsyncResult<String>>): RedisTransaction

Add one or more geospatial items in the geospatial index represented using a sorted set.

geodist

abstract fun 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.

geodistWithUnit

abstract fun 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.

geohash

abstract fun 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).

geohashMany

abstract fun geohashMany(key: String, members: MutableList<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).

geopos

abstract fun 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.

geoposMany

abstract fun geoposMany(key: String, members: MutableList<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.

georadius

abstract fun 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).

georadiusWithOptions

abstract fun 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).

georadiusbymember

abstract fun 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.

georadiusbymemberWithOptions

abstract fun 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.

get

abstract fun get(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the value of a key

getBinary

abstract fun getBinary(key: String, handler: Handler<AsyncResult<Buffer>>): RedisTransaction

Get the value of a key - without decoding as utf-8

getbit

abstract fun getbit(key: String, offset: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Returns the bit value at offset in the string value stored at key

getrange

abstract fun getrange(key: String, start: Long, end: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Get a substring of the string stored at a key

getset

abstract fun getset(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the string value of a key and return its old value

hdel

abstract fun hdel(key: String, field: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete one or more hash fields

hdelMany

abstract fun hdelMany(key: String, fields: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete one or more hash fields

hexists

abstract fun hexists(key: String, field: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine if a hash field exists

hget

abstract fun hget(key: String, field: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the value of a hash field

hgetall

abstract fun hgetall(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get all the fields and values in a hash

hincrby

abstract fun hincrby(key: String, field: String, increment: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the integer value of a hash field by the given number

hincrbyfloat

abstract fun hincrbyfloat(key: String, field: String, increment: Double, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the float value of a hash field by the given amount

hkeys

abstract fun hkeys(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get all the fields in a hash

hlen

abstract fun hlen(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the number of fields in a hash

hmget

abstract fun hmget(key: String, fields: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the values of all the given hash fields

hmset

abstract fun hmset(key: String, values: JsonObject, handler: Handler<AsyncResult<String>>): RedisTransaction

Set multiple hash fields to multiple values

hscan

abstract fun hscan(key: String, cursor: String, options: ScanOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Incrementally iterate hash fields and associated values

hset

abstract fun hset(key: String, field: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the string value of a hash field

hsetnx

abstract fun 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

hvals

abstract fun hvals(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get all the values in a hash

incr

abstract fun incr(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the integer value of a key by one

incrby

abstract fun incrby(key: String, increment: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the integer value of a key by the given amount

incrbyfloat

abstract fun incrbyfloat(key: String, increment: Double, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the float value of a key by the given amount

info

abstract fun info(handler: Handler<AsyncResult<String>>): RedisTransaction

Get information and statistics about the server

infoSection

abstract fun infoSection(section: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get information and statistics about the server

keys

abstract fun keys(pattern: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Find all keys matching the given pattern

lastsave

abstract fun lastsave(handler: Handler<AsyncResult<String>>): RedisTransaction

Get the UNIX time stamp of the last successful save to disk

lindex

abstract fun lindex(key: String, index: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Get an element from a list by its index

linsert

abstract fun 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

llen

abstract fun llen(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the length of a list

lpop

abstract fun lpop(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove and get the first element in a list

lpush

abstract fun lpush(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Prepend one value to a list

lpushMany

abstract fun lpushMany(key: String, values: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Prepend one or multiple values to a list

lpushx

abstract fun lpushx(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Prepend a value to a list, only if the list exists

lrange

abstract fun lrange(key: String, from: Long, to: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Get a range of elements from a list

lrem

abstract fun lrem(key: String, count: Long, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove elements from a list

lset

abstract fun lset(key: String, index: Long, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the value of an element in a list by its index

ltrim

abstract fun ltrim(key: String, from: Long, to: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Trim a list to the specified range

mget

abstract fun mget(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the value of the given key

mgetMany

abstract fun mgetMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the values of all the given keys

migrate

abstract fun 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.

monitor

abstract fun monitor(handler: Handler<AsyncResult<String>>): RedisTransaction

Listen for all requests received by the server in real time

move

abstract fun move(key: String, destdb: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Move a key to another database

mset

abstract fun mset(keyvals: JsonObject, handler: Handler<AsyncResult<String>>): RedisTransaction

Set multiple keys to multiple values

msetnx

abstract fun msetnx(keyvals: JsonObject, handler: Handler<AsyncResult<String>>): RedisTransaction

Set multiple keys to multiple values, only if none of the keys exist

multi

abstract fun multi(handler: Handler<AsyncResult<String>>): RedisTransaction

Mark the start of a RedisTransaction block

object

abstract fun object(key: String, cmd: ObjectCmd, handler: Handler<AsyncResult<String>>): RedisTransaction

Inspect the internals of Redis objects

persist

abstract fun persist(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove the expiration from a key

pexpire

abstract fun pexpire(key: String, millis: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Set a key's time to live in milliseconds

pexpireat

abstract fun pexpireat(key: String, millis: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the expiration for a key as a UNIX timestamp specified in milliseconds

pfadd

abstract fun pfadd(key: String, element: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Adds the specified element to the specified HyperLogLog.

pfaddMany

abstract fun pfaddMany(key: String, elements: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Adds the specified elements to the specified HyperLogLog.

pfcount

abstract fun pfcount(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Return the approximated cardinality of the set observed by the HyperLogLog at key.

pfcountMany

abstract fun pfcountMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).

pfmerge

abstract fun pfmerge(destkey: String, keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Merge N different HyperLogLogs into a single one.

ping

abstract fun ping(handler: Handler<AsyncResult<String>>): RedisTransaction

Ping the server

psetex

abstract fun psetex(key: String, millis: Long, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the value and expiration in milliseconds of a key

psubscribe

abstract fun psubscribe(pattern: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Listen for messages published to channels matching the given pattern

psubscribeMany

abstract fun psubscribeMany(patterns: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Listen for messages published to channels matching the given patterns

pttl

abstract fun pttl(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the time to live for a key in milliseconds

publish

abstract fun publish(channel: String, message: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Post a message to a channel

pubsubChannels

abstract fun pubsubChannels(pattern: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Lists the currently active channels - only those matching the pattern

pubsubNumpat

abstract fun pubsubNumpat(handler: Handler<AsyncResult<String>>): RedisTransaction

Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command)

pubsubNumsub

abstract fun pubsubNumsub(channels: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels

punsubscribe

abstract fun punsubscribe(patterns: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Stop listening for messages posted to channels matching the given patterns

randomkey

abstract fun randomkey(handler: Handler<AsyncResult<String>>): RedisTransaction

Return a random key from the keyspace

rename

abstract fun rename(key: String, newkey: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Rename a key

renamenx

abstract fun renamenx(key: String, newkey: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Rename a key, only if the new key does not exist

restore

abstract fun restore(key: String, millis: Long, serialized: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Create a key using the provided serialized value, previously obtained using DUMP.

role

abstract fun role(handler: Handler<AsyncResult<String>>): RedisTransaction

Return the role of the instance in the context of replication

rpop

abstract fun rpop(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove and get the last element in a list

rpoplpush

abstract fun 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

rpush

abstract fun rpush(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Append one or multiple values to a list

rpushMany

abstract fun rpushMany(key: String, values: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Append one or multiple values to a list

rpushx

abstract fun rpushx(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Append a value to a list, only if the list exists

sadd

abstract fun sadd(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Add a member to a set

saddMany

abstract fun saddMany(key: String, members: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Add one or more members to a set

save

abstract fun save(handler: Handler<AsyncResult<String>>): RedisTransaction

Synchronously save the dataset to disk

scan

abstract fun scan(cursor: String, options: ScanOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Incrementally iterate the keys space

scard

abstract fun scard(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the number of members in a set

scriptExists

abstract fun scriptExists(script: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Check existence of script in the script cache.

scriptExistsMany

abstract fun scriptExistsMany(scripts: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Check existence of scripts in the script cache.

scriptFlush

abstract fun scriptFlush(handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all the scripts from the script cache.

scriptKill

abstract fun scriptKill(handler: Handler<AsyncResult<String>>): RedisTransaction

Kill the script currently in execution.

scriptLoad

abstract fun scriptLoad(script: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Load the specified Lua script into the script cache.

sdiff

abstract fun sdiff(key: String, cmpkeys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Subtract multiple sets

sdiffstore

abstract fun sdiffstore(destkey: String, key: String, cmpkeys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Subtract multiple sets and store the resulting set in a key

select

abstract fun select(dbindex: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Change the selected database for the current connection

set

abstract fun set(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the string value of a key

setBinary

abstract fun setBinary(key: String, value: Buffer, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the binary string value of a key - without encoding as utf-8

setBinaryWithOptions

abstract fun setBinaryWithOptions(key: String, value: Buffer, options: SetOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the string value of a key

setWithOptions

abstract fun setWithOptions(key: String, value: String, options: SetOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the string value of a key

setbit

abstract fun 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

setex

abstract fun setex(key: String, seconds: Long, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the value and expiration of a key

setnx

abstract fun setnx(key: String, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Set the value of a key, only if the key does not exist

setrange

abstract fun setrange(key: String, offset: Int, value: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Overwrite part of a string at key starting at the specified offset

sinter

abstract fun sinter(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Intersect multiple sets

sinterstore

abstract fun sinterstore(destkey: String, keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Intersect multiple sets and store the resulting set in a key

sismember

abstract fun sismember(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine if a given value is a member of a set

slaveof

abstract fun slaveof(host: String, port: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Make the server a slave of another instance

slaveofNoone

abstract fun slaveofNoone(handler: Handler<AsyncResult<String>>): RedisTransaction

Make this server a master

slowlogGet

abstract fun slowlogGet(limit: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Read the Redis slow queries log

slowlogLen

abstract fun slowlogLen(handler: Handler<AsyncResult<String>>): RedisTransaction

Get the length of the Redis slow queries log

slowlogReset

abstract fun slowlogReset(handler: Handler<AsyncResult<String>>): RedisTransaction

Reset the Redis slow queries log

smembers

abstract fun smembers(key: String, handler: Handler<AsyncResult<JsonArray>>): RedisTransaction

Get all the members in a set

smove

abstract fun smove(key: String, destkey: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Move a member from one set to another

sort

abstract fun sort(key: String, options: SortOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Sort the elements in a list, set or sorted set

spop

abstract fun spop(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove and return a random member from a set

spopMany

abstract fun spopMany(key: String, count: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove and return random members from a set

srandmember

abstract fun srandmember(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get one or multiple random members from a set

srandmemberCount

abstract fun srandmemberCount(key: String, count: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Get one or multiple random members from a set

srem

abstract fun srem(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove one member from a set

sremMany

abstract fun sremMany(key: String, members: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove one or more members from a set

sscan

abstract fun sscan(key: String, cursor: String, options: ScanOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Incrementally iterate Set elements

strlen

abstract fun strlen(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the length of the value stored in a key

subscribe

abstract fun subscribe(channel: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Listen for messages published to the given channels

subscribeMany

abstract fun subscribeMany(channels: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Listen for messages published to the given channels

sunion

abstract fun sunion(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Add multiple sets

sunionstore

abstract fun sunionstore(destkey: String, keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Add multiple sets and store the resulting set in a key

swapdb

abstract fun swapdb(index1: Int, index2: Int, handler: Handler<AsyncResult<String>>): RedisTransaction

Swaps two Redis databases

sync

abstract fun sync(handler: Handler<AsyncResult<String>>): RedisTransaction

Internal command used for replication

time

abstract fun time(handler: Handler<AsyncResult<String>>): RedisTransaction

Return the current server time

ttl

abstract fun ttl(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the time to live for a key

type

abstract fun type(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine the type stored at key

unlink

abstract fun unlink(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.

unlinkMany

abstract fun unlinkMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Delete multiple keys asynchronously in another thread. Otherwise it is just as DEL, but non blocking.

unsubscribe

abstract fun unsubscribe(channels: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Stop listening for messages posted to the given channels

unwatch

abstract fun unwatch(handler: Handler<AsyncResult<String>>): RedisTransaction

Forget about all watched keys

wait

abstract fun 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.

watch

abstract fun watch(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Watch the given keys to determine execution of the MULTI/EXEC block

watchMany

abstract fun watchMany(keys: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Watch the given keys to determine execution of the MULTI/EXEC block

zadd

abstract fun 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

zaddMany

abstract fun zaddMany(key: String, members: MutableMap<String, Double>, handler: Handler<AsyncResult<String>>): RedisTransaction

Add one or more members to a sorted set, or update its score if it already exists

zcard

abstract fun zcard(key: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the number of members in a sorted set

zcount

abstract fun 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

zincrby

abstract fun zincrby(key: String, increment: Double, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Increment the score of a member in a sorted set

zinterstore

abstract fun zinterstore(destkey: String, sets: MutableList<String>, options: AggregateOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Intersect multiple sorted sets and store the resulting sorted set in a new key

zinterstoreWeighed

abstract fun zinterstoreWeighed(destkey: String, sets: MutableMap<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

zlexcount

abstract fun 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

zrange

abstract fun zrange(key: String, start: Long, stop: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Return a range of members in a sorted set, by index

zrangeWithOptions

abstract fun 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

zrangebylex

abstract fun 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

zrangebyscore

abstract fun 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

zrank

abstract fun zrank(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Determine the index of a member in a sorted set

zrem

abstract fun zrem(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove one member from a sorted set

zremMany

abstract fun zremMany(key: String, members: MutableList<String>, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove one or more members from a sorted set

zremrangebylex

abstract fun zremrangebylex(key: String, min: String, max: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all members in a sorted set between the given lexicographical range

zremrangebyrank

abstract fun zremrangebyrank(key: String, start: Long, stop: Long, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all members in a sorted set within the given indexes

zremrangebyscore

abstract fun zremrangebyscore(key: String, min: String, max: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Remove all members in a sorted set within the given scores

zrevrange

abstract fun 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

zrevrangebylex

abstract fun 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

zrevrangebyscore

abstract fun 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

zrevrank

abstract fun 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

zscan

abstract fun zscan(key: String, cursor: String, options: ScanOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Incrementally iterate sorted sets elements and associated scores

zscore

abstract fun zscore(key: String, member: String, handler: Handler<AsyncResult<String>>): RedisTransaction

Get the score associated with the given member in a sorted set

zunionstore

abstract fun zunionstore(destkey: String, sets: MutableList<String>, options: AggregateOptions, handler: Handler<AsyncResult<String>>): RedisTransaction

Add multiple sorted sets and store the resulting sorted set in a new key

zunionstoreWeighed

abstract fun zunionstoreWeighed(key: String, sets: MutableMap<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