suspend fun RedisClient.appendAwait(key: String, value: String): Long
Append a value to a key |
|
suspend fun RedisClient.authAwait(password: String): String
Authenticate to the server |
|
suspend fun RedisClient.bgrewriteaofAwait(): String
Asynchronously rewrite the append-only file |
|
suspend fun RedisClient.bgsaveAwait(): String
Asynchronously save the dataset to disk |
|
suspend fun RedisClient.bitcountAwait(key: String): Long
Count set bits in a string |
|
suspend fun RedisClient.bitcountRangeAwait(key: String, start: Long, end: Long): Long
Count set bits in a string |
|
suspend fun RedisClient.bitfieldAwait(key: String, bitFieldOptions: BitFieldOptions): JsonArray
Perform arbitrary bitfield integer operations on strings. |
|
suspend fun RedisClient.bitfieldWithOverflowAwait(key: String, commands: BitFieldOptions, overflow: BitFieldOverflowOptions): JsonArray
Perform arbitrary bitfield integer operations on strings. |
|
suspend fun RedisClient.bitopAwait(operation: BitOperation, destkey: String, keys: List<String>): Long
Perform bitwise operations between strings |
|
suspend fun RedisClient.bitposAwait(key: String, bit: Int): Long
Find first bit set or clear in a string |
|
suspend fun RedisClient.bitposFromAwait(key: String, bit: Int, start: Int): Long
Find first bit set or clear in a string |
|
suspend fun RedisClient.bitposRangeAwait(key: String, bit: Int, start: Int, stop: Int): Long
Find first bit set or clear in a string |
|
suspend fun RedisClient.blpopAwait(key: String, seconds: Int): JsonArray
Remove and get the first element in a list, or block until one is available |
|
suspend fun RedisClient.blpopManyAwait(keys: List<String>, seconds: Int): JsonArray
Remove and get the first element in any of the lists, or block until one is available |
|
suspend fun RedisClient.brpopAwait(key: String, seconds: Int): JsonArray
Remove and get the last element in a list, or block until one is available |
|
suspend fun RedisClient.brpopManyAwait(keys: List<String>, seconds: Int): JsonArray
Remove and get the last element in any of the lists, or block until one is available |
|
suspend fun RedisClient.brpoplpushAwait(key: String, destkey: String, seconds: Int): String
Pop a value from a list, push it to another list and return it; or block until one is available |
|
suspend fun RedisClient.clientGetnameAwait(): String
Get the current connection name |
|
suspend fun RedisClient.clientKillAwait(filter: KillFilter): Long
Kill the connection of a client |
|
suspend fun RedisClient.clientListAwait(): String
Get the list of client connections |
|
suspend fun RedisClient.clientPauseAwait(millis: Long): String
Stop processing commands from clients for some time |
|
suspend fun RedisClient.clientReplyAwait(options: ClientReplyOptions): String
Instruct the server whether to reply to commands. |
|
suspend fun RedisClient.clientSetnameAwait(name: String): String
Set the current connection name |
|
suspend fun RedisClient.closeAwait(): Unit
Close the client - when it is fully closed the handler will be called. |
|
suspend fun RedisClient.clusterAddslotsAwait(slots: List<Long>): Unit
Assign new hash slots to receiving node. |
|
suspend fun RedisClient.clusterCountFailureReportsAwait(nodeId: String): Long
Return the number of failure reports active for a given node. |
|
suspend fun RedisClient.clusterCountkeysinslotAwait(slot: Long): Long
Return the number of local keys in the specified hash slot. |
|
suspend fun RedisClient.clusterDelslotsAwait(slot: Long): Unit
Set hash slots as unbound in receiving node. |
|
suspend fun RedisClient.clusterDelslotsManyAwait(slots: List<Long>): Unit
Set hash slots as unbound in receiving node. |
|
suspend fun RedisClient.clusterFailOverWithOptionsAwait(options: FailoverOptions): Unit
Forces a slave to perform a manual failover of its master. |
|
suspend fun RedisClient.clusterFailoverAwait(): Unit
Forces a slave to perform a manual failover of its master. |
|
suspend fun RedisClient.clusterForgetAwait(nodeId: String): Unit
Remove a node from the nodes table. |
|
suspend fun RedisClient.clusterGetkeysinslotAwait(slot: Long, count: Long): JsonArray
Return local key names in the specified hash slot. |
|
suspend fun RedisClient.clusterInfoAwait(): JsonArray
Provides info about Redis Cluster node state. |
|
suspend fun RedisClient.clusterKeyslotAwait(key: String): Long
Returns the hash slot of the specified key. |
|
suspend fun RedisClient.clusterMeetAwait(ip: String, port: Long): Unit
Force a node cluster to handshake with another node. |
|
suspend fun RedisClient.clusterNodesAwait(): JsonArray
Get Cluster config for the node. |
|
suspend fun RedisClient.clusterReplicateAwait(nodeId: String): Unit
Reconfigure a node as a slave of the specified master node. |
|
suspend fun RedisClient.clusterResetAwait(): Unit
Reset a Redis Cluster node. |
|
suspend fun RedisClient.clusterResetWithOptionsAwait(options: ResetOptions): Unit
Reset a Redis Cluster node. |
|
suspend fun RedisClient.clusterSaveconfigAwait(): Unit
Forces the node to save cluster state on disk. |
|
suspend fun RedisClient.clusterSetConfigEpochAwait(epoch: Long): Unit
Set the configuration epoch in a new node. |
|
suspend fun RedisClient.clusterSetslotAwait(slot: Long, subcommand: SlotCmd): Unit
Bind an hash slot to a specific node. |
|
suspend fun RedisClient.clusterSetslotWithNodeAwait(slot: Long, subcommand: SlotCmd, nodeId: String): Unit
Bind an hash slot to a specific node. |
|
suspend fun RedisClient.clusterSlavesAwait(nodeId: String): JsonArray
List slave nodes of the specified master node. |
|
suspend fun RedisClient.clusterSlotsAwait(): JsonArray
Get array of Cluster slot to node mappings |
|
suspend fun RedisClient.commandAwait(): JsonArray
Get array of Redis command details |
|
suspend fun RedisClient.commandCountAwait(): Long
Get total number of Redis commands |
|
suspend fun RedisClient.commandGetkeysAwait(): JsonArray
Extract keys given a full Redis command |
|
suspend fun RedisClient.commandInfoAwait(commands: List<String>): JsonArray
Get array of specific Redis command details |
|
suspend fun RedisClient.configGetAwait(parameter: String): JsonArray
Get the value of a configuration parameter |
|
suspend fun RedisClient.configResetstatAwait(): String
Reset the stats returned by INFO |
|
suspend fun RedisClient.configRewriteAwait(): String
Rewrite the configuration file with the in memory configuration |
|
suspend fun RedisClient.configSetAwait(parameter: String, value: String): String
Set a configuration parameter to the given value |
|
suspend fun RedisClient.dbsizeAwait(): Long
Return the number of keys in the selected database |
|
suspend fun RedisClient.debugObjectAwait(key: String): String
Get debugging information about a key |
|
suspend fun RedisClient.debugSegfaultAwait(): String
Make the server crash |
|
suspend fun RedisClient.decrAwait(key: String): Long
Decrement the integer value of a key by one |
|
suspend fun RedisClient.decrbyAwait(key: String, decrement: Long): Long
Decrement the integer value of a key by the given number |
|
suspend fun RedisClient.delAwait(key: String): Long
Delete a key |
|
suspend fun RedisClient.delManyAwait(keys: List<String>): Long
Delete many keys |
|
suspend fun RedisClient.dumpAwait(key: String): String
Return a serialized version of the value stored at the specified key. |
|
suspend fun RedisClient.echoAwait(message: String): String
Echo the given string |
|
suspend fun RedisClient.evalAwait(script: String, keys: List<String>, args: List<String>): JsonArray
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. |
|
suspend fun RedisClient.evalScriptAwait(script: Script, keys: List<String>, args: List<String>): JsonArray
Execute a Lua script server side. This method is a high level wrapper around EVAL and EVALSHA using the latter if possible, falling back to EVAL if the script is not cached by the server yet. According to Redis documentation, executed scripts are guaranteed to be in the script cache of a given execution of a Redis instance forever, which means typically the overhead incurred by optimistically sending EVALSHA is minimal, while improving performance and saving bandwidth compared to using EVAL every time. |
|
suspend fun RedisClient.evalshaAwait(sha1: String, keys: List<String>, values: List<String>): JsonArray
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. |
|
suspend fun RedisClient.existsAwait(key: String): Long
Determine if a key exists |
|
suspend fun RedisClient.existsManyAwait(keys: List<String>): Long
Determine if one or many keys exist |
|
suspend fun RedisClient.expireAwait(key: String, seconds: Long): Long
Set a key's time to live in seconds |
|
suspend fun RedisClient.expireatAwait(key: String, seconds: Long): Long
Set the expiration for a key as a UNIX timestamp |
|
suspend fun RedisClient.flushallAwait(): String
Remove all keys from all databases |
|
suspend fun RedisClient.flushdbAwait(): String
Remove all keys from the current database |
|
suspend fun RedisClient.geoaddAwait(key: String, longitude: Double, latitude: Double, member: String): Long
Add one or more geospatial items in the geospatial index represented using a sorted set. |
|
suspend fun RedisClient.geoaddManyAwait(key: String, members: List<GeoMember>): Long
Add one or more geospatial items in the geospatial index represented using a sorted set. |
|
suspend fun RedisClient.geodistAwait(key: String, member1: String, member2: String): String
Return the distance between two members in the geospatial index represented by the sorted set. |
|
suspend fun RedisClient.geodistWithUnitAwait(key: String, member1: String, member2: String, unit: GeoUnit): String
Return the distance between two members in the geospatial index represented by the sorted set. |
|
suspend fun RedisClient.geohashAwait(key: String, member: String): JsonArray
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD). |
|
suspend fun RedisClient.geohashManyAwait(key: String, members: List<String>): JsonArray
Return valid Geohash strings representing the position of one or more elements in a sorted set value representing a geospatial index (where elements were added using GEOADD). |
|
suspend fun RedisClient.geoposAwait(key: String, member: String): JsonArray
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key. |
|
suspend fun RedisClient.geoposManyAwait(key: String, members: List<String>): JsonArray
Return the positions (longitude,latitude) of all the specified members of the geospatial index represented by the sorted set at key. |
|
suspend fun RedisClient.georadiusAwait(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit): JsonArray
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius). |
|
suspend fun RedisClient.georadiusWithOptionsAwait(key: String, longitude: Double, latitude: Double, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): JsonArray
Return the members of a sorted set populated with geospatial information using GEOADD, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius). |
|
suspend fun RedisClient.georadiusbymemberAwait(key: String, member: String, radius: Double, unit: GeoUnit): JsonArray
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set. |
|
suspend fun RedisClient.georadiusbymemberWithOptionsAwait(key: String, member: String, radius: Double, unit: GeoUnit, options: GeoRadiusOptions): JsonArray
This command is exactly like GEORADIUS with the sole difference that instead of taking, as the center of the area to query, a longitude and latitude value, it takes the name of a member already existing inside the geospatial index represented by the sorted set. |
|
suspend fun RedisClient.getAwait(key: String): String?
Get the value of a key |
|
suspend fun RedisClient.getBinaryAwait(key: String): Buffer?
Get the value of a key - without decoding as utf-8 |
|
suspend fun RedisClient.getbitAwait(key: String, offset: Long): Long
Returns the bit value at offset in the string value stored at key |
|
suspend fun RedisClient.getrangeAwait(key: String, start: Long, end: Long): String
Get a substring of the string stored at a key |
|
suspend fun RedisClient.getsetAwait(key: String, value: String): String?
Set the string value of a key and return its old value |
|
suspend fun RedisClient.hdelAwait(key: String, field: String): Long
Delete one or more hash fields |
|
suspend fun RedisClient.hdelManyAwait(key: String, fields: List<String>): Long
Delete one or more hash fields |
|
suspend fun RedisClient.hexistsAwait(key: String, field: String): Long
Determine if a hash field exists |
|
suspend fun RedisClient.hgetAwait(key: String, field: String): String?
Get the value of a hash field |
|
suspend fun RedisClient.hgetallAwait(key: String): JsonObject
Get all the fields and values in a hash |
|
suspend fun RedisClient.hincrbyAwait(key: String, field: String, increment: Long): Long
Increment the integer value of a hash field by the given number |
|
suspend fun RedisClient.hincrbyfloatAwait(key: String, field: String, increment: Double): String
Increment the float value of a hash field by the given amount |
|
suspend fun RedisClient.hkeysAwait(key: String): JsonArray
Get all the fields in a hash |
|
suspend fun RedisClient.hlenAwait(key: String): Long
Get the number of fields in a hash |
|
suspend fun RedisClient.hmgetAwait(key: String, fields: List<String>): JsonArray
Get the values of all the given hash fields |
|
suspend fun RedisClient.hmsetAwait(key: String, values: JsonObject): String
Set multiple hash fields to multiple values |
|
suspend fun RedisClient.hscanAwait(key: String, cursor: String, options: ScanOptions): JsonArray
Incrementally iterate hash fields and associated values |
|
suspend fun RedisClient.hsetAwait(key: String, field: String, value: String): Long
Set the string value of a hash field |
|
suspend fun RedisClient.hsetnxAwait(key: String, field: String, value: String): Long
Set the value of a hash field, only if the field does not exist |
|
suspend fun RedisClient.hstrlenAwait(key: String, field: String): Long
Get the length of the value of a hash field. |
|
suspend fun RedisClient.hvalsAwait(key: String): JsonArray
Get all the values in a hash |
|
suspend fun RedisClient.incrAwait(key: String): Long
Increment the integer value of a key by one |
|
suspend fun RedisClient.incrbyAwait(key: String, increment: Long): Long
Increment the integer value of a key by the given amount |
|
suspend fun RedisClient.incrbyfloatAwait(key: String, increment: Double): String
Increment the float value of a key by the given amount |
|
suspend fun RedisClient.infoAwait(): JsonObject
Get information and statistics about the server |
|
suspend fun RedisClient.infoSectionAwait(section: String): JsonObject
Get information and statistics about the server |
|
suspend fun RedisClient.keysAwait(pattern: String): JsonArray
Find all keys matching the given pattern |
|
suspend fun RedisClient.lastsaveAwait(): Long
Get the UNIX time stamp of the last successful save to disk |
|
suspend fun RedisClient.lindexAwait(key: String, index: Int): String
Get an element from a list by its index |
|
suspend fun RedisClient.linsertAwait(key: String, option: InsertOptions, pivot: String, value: String): Long
Insert an element before or after another element in a list |
|
suspend fun RedisClient.llenAwait(key: String): Long
Get the length of a list |
|
suspend fun RedisClient.lpopAwait(key: String): String?
Remove and get the first element in a list |
|
suspend fun RedisClient.lpushAwait(key: String, value: String): Long
Prepend one value to a list |
|
suspend fun RedisClient.lpushManyAwait(key: String, values: List<String>): Long
Prepend one or multiple values to a list |
|
suspend fun RedisClient.lpushxAwait(key: String, value: String): Long
Prepend a value to a list, only if the list exists |
|
suspend fun RedisClient.lrangeAwait(key: String, from: Long, to: Long): JsonArray
Get a range of elements from a list |
|
suspend fun RedisClient.lremAwait(key: String, count: Long, value: String): Long
Remove elements from a list |
|
suspend fun RedisClient.lsetAwait(key: String, index: Long, value: String): String
Set the value of an element in a list by its index |
|
suspend fun RedisClient.ltrimAwait(key: String, from: Long, to: Long): String
Trim a list to the specified range |
|
suspend fun RedisClient.mgetAwait(key: String): JsonArray
Get the value of the given key |
|
suspend fun RedisClient.mgetManyAwait(keys: List<String>): JsonArray
Get the values of all the given keys |
|
suspend fun RedisClient.migrateAwait(host: String, port: Int, key: String, destdb: Int, timeout: Long, options: MigrateOptions): String
Atomically transfer a key from a Redis instance to another one. |
|
suspend fun RedisClient.monitorAwait(): Unit
Listen for all requests received by the server in real time |
|
suspend fun RedisClient.moveAwait(key: String, destdb: Int): Long
Move a key to another database |
|
suspend fun RedisClient.msetAwait(keyvals: JsonObject): String
Set multiple keys to multiple values |
|
suspend fun RedisClient.msetnxAwait(keyvals: JsonObject): Long
Set multiple keys to multiple values, only if none of the keys exist |
|
suspend fun RedisClient.objectAwait(key: String, cmd: ObjectCmd): Unit
Inspect the internals of Redis objects |
|
suspend fun RedisClient.persistAwait(key: String): Long
Remove the expiration from a key |
|
suspend fun RedisClient.pexpireAwait(key: String, millis: Long): Long
Set a key's time to live in milliseconds |
|
suspend fun RedisClient.pexpireatAwait(key: String, millis: Long): Long
Set the expiration for a key as a UNIX timestamp specified in milliseconds |
|
suspend fun RedisClient.pfaddAwait(key: String, element: String): Long
Adds the specified element to the specified HyperLogLog. |
|
suspend fun RedisClient.pfaddManyAwait(key: String, elements: List<String>): Long
Adds the specified elements to the specified HyperLogLog. |
|
suspend fun RedisClient.pfcountAwait(key: String): Long
Return the approximated cardinality of the set observed by the HyperLogLog at key. |
|
suspend fun RedisClient.pfcountManyAwait(keys: List<String>): Long
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). |
|
suspend fun RedisClient.pfmergeAwait(destkey: String, keys: List<String>): String
Merge N different HyperLogLogs into a single one. |
|
suspend fun RedisClient.pingAwait(): String
Ping the server |
|
suspend fun RedisClient.psetexAwait(key: String, millis: Long, value: String): Unit
Set the value and expiration in milliseconds of a key |
|
suspend fun RedisClient.psubscribeAwait(pattern: String): JsonArray
Listen for messages published to channels matching the given pattern |
|
suspend fun RedisClient.psubscribeManyAwait(patterns: List<String>): JsonArray
Listen for messages published to channels matching the given patterns |
|
suspend fun RedisClient.pttlAwait(key: String): Long
Get the time to live for a key in milliseconds |
|
suspend fun RedisClient.publishAwait(channel: String, message: String): Long
Post a message to a channel |
|
suspend fun RedisClient.pubsubChannelsAwait(pattern: String): JsonArray
Lists the currently active channels - only those matching the pattern |
|
suspend fun RedisClient.pubsubNumpatAwait(): Long
Returns the number of subscriptions to patterns (that are performed using the PSUBSCRIBE command) |
|
suspend fun RedisClient.pubsubNumsubAwait(channels: List<String>): JsonArray
Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels |
|
suspend fun RedisClient.punsubscribeAwait(patterns: List<String>): Unit
Stop listening for messages posted to channels matching the given patterns |
|
suspend fun RedisClient.randomkeyAwait(): String
Return a random key from the keyspace |
|
suspend fun RedisClient.renameAwait(key: String, newkey: String): String
Rename a key |
|
suspend fun RedisClient.renamenxAwait(key: String, newkey: String): Long
Rename a key, only if the new key does not exist |
|
suspend fun RedisClient.restoreAwait(key: String, millis: Long, serialized: String): String
Create a key using the provided serialized value, previously obtained using DUMP. |
|
suspend fun RedisClient.roleAwait(): JsonArray
Return the role of the instance in the context of replication |
|
suspend fun RedisClient.rpopAwait(key: String): String
Remove and get the last element in a list |
|
suspend fun RedisClient.rpoplpushAwait(key: String, destkey: String): String
Remove the last element in a list, append it to another list and return it |
|
suspend fun RedisClient.rpushAwait(key: String, value: String): Long
Append one or multiple values to a list |
|
suspend fun RedisClient.rpushManyAwait(key: String, values: List<String>): Long
Append one or multiple values to a list |
|
suspend fun RedisClient.rpushxAwait(key: String, value: String): Long
Append a value to a list, only if the list exists |
|
suspend fun RedisClient.saddAwait(key: String, member: String): Long
Add a member to a set |
|
suspend fun RedisClient.saddManyAwait(key: String, members: List<String>): Long
Add one or more members to a set |
|
suspend fun RedisClient.saveAwait(): String
Synchronously save the dataset to disk |
|
suspend fun RedisClient.scanAwait(cursor: String, options: ScanOptions): JsonArray
Incrementally iterate the keys space |
|
suspend fun RedisClient.scardAwait(key: String): Long
Get the number of members in a set |
|
suspend fun RedisClient.scriptDebugAwait(scriptDebugOptions: ScriptDebugOptions): String
Set the debug mode for executed scripts. |
|
suspend fun RedisClient.scriptExistsAwait(script: String): JsonArray
Check existence of script in the script cache. |
|
suspend fun RedisClient.scriptExistsManyAwait(scripts: List<String>): JsonArray
Check existence of scripts in the script cache. |
|
suspend fun RedisClient.scriptFlushAwait(): String
Remove all the scripts from the script cache. |
|
suspend fun RedisClient.scriptKillAwait(): String
Kill the script currently in execution. |
|
suspend fun RedisClient.scriptLoadAwait(script: String): String
Load the specified Lua script into the script cache. |
|
suspend fun RedisClient.sdiffAwait(key: String, cmpkeys: List<String>): JsonArray
Subtract multiple sets |
|
suspend fun RedisClient.sdiffstoreAwait(destkey: String, key: String, cmpkeys: List<String>): Long
Subtract multiple sets and store the resulting set in a key |
|
suspend fun RedisClient.selectAwait(dbindex: Int): String
Change the selected database for the current connection |
|
suspend fun RedisClient.setAwait(key: String, value: String): Unit
Set the string value of a key |
|
suspend fun RedisClient.setBinaryAwait(key: String, value: Buffer): Unit
Set the binary string value of a key - without encoding as utf-8 |
|
suspend fun RedisClient.setBinaryWithOptionsAwait(key: String, value: Buffer, options: SetOptions): Unit
Set the string value of a key |
|
suspend fun RedisClient.setWithOptionsAwait(key: String, value: String, options: SetOptions): String
Set the string value of a key |
|
suspend fun RedisClient.setbitAwait(key: String, offset: Long, bit: Int): Long
Sets or clears the bit at offset in the string value stored at key |
|
suspend fun RedisClient.setexAwait(key: String, seconds: Long, value: String): String
Set the value and expiration of a key |
|
suspend fun RedisClient.setnxAwait(key: String, value: String): Long
Set the value of a key, only if the key does not exist |
|
suspend fun RedisClient.setrangeAwait(key: String, offset: Int, value: String): Long
Overwrite part of a string at key starting at the specified offset |
|
suspend fun RedisClient.sinterAwait(keys: List<String>): JsonArray
Intersect multiple sets |
|
suspend fun RedisClient.sinterstoreAwait(destkey: String, keys: List<String>): Long
Intersect multiple sets and store the resulting set in a key |
|
suspend fun RedisClient.sismemberAwait(key: String, member: String): Long
Determine if a given value is a member of a set |
|
suspend fun RedisClient.slaveofAwait(host: String, port: Int): String
Make the server a slave of another instance |
|
suspend fun RedisClient.slaveofNooneAwait(): String
Make this server a master |
|
suspend fun RedisClient.slowlogGetAwait(limit: Int): JsonArray
Read the Redis slow queries log |
|
suspend fun RedisClient.slowlogLenAwait(): Long
Get the length of the Redis slow queries log |
|
suspend fun RedisClient.slowlogResetAwait(): Unit
Reset the Redis slow queries log |
|
suspend fun RedisClient.smembersAwait(key: String): JsonArray
Get all the members in a set |
|
suspend fun RedisClient.smoveAwait(key: String, destkey: String, member: String): Long
Move a member from one set to another |
|
suspend fun RedisClient.sortAwait(key: String, options: SortOptions): JsonArray
Sort the elements in a list, set or sorted set |
|
suspend fun RedisClient.spopAwait(key: String): String?
Remove and return a random member from a set |
|
suspend fun RedisClient.spopManyAwait(key: String, count: Int): JsonArray
Remove and return random members from a set |
|
suspend fun RedisClient.srandmemberAwait(key: String): String
Get one or multiple random members from a set |
|
suspend fun RedisClient.srandmemberCountAwait(key: String, count: Int): JsonArray
Get one or multiple random members from a set |
|
suspend fun RedisClient.sremAwait(key: String, member: String): Long
Remove one member from a set |
|
suspend fun RedisClient.sremManyAwait(key: String, members: List<String>): Long
Remove one or more members from a set |
|
suspend fun RedisClient.sscanAwait(key: String, cursor: String, options: ScanOptions): JsonArray
Incrementally iterate Set elements |
|
suspend fun RedisClient.strlenAwait(key: String): Long
Get the length of the value stored in a key |
|
suspend fun RedisClient.subscribeAwait(channel: String): JsonArray
Listen for messages published to the given channels |
|
suspend fun RedisClient.subscribeManyAwait(channels: List<String>): JsonArray
Listen for messages published to the given channels |
|
suspend fun RedisClient.sunionAwait(keys: List<String>): JsonArray
Add multiple sets |
|
suspend fun RedisClient.sunionstoreAwait(destkey: String, keys: List<String>): Long
Add multiple sets and store the resulting set in a key |
|
suspend fun RedisClient.swapdbAwait(index1: Int, index2: Int): String
Swaps two Redis databases |
|
suspend fun RedisClient.syncAwait(): Unit
Internal command used for replication |
|
suspend fun RedisClient.timeAwait(): JsonArray
Return the current server time |
|
suspend fun RedisClient.touchAwait(key: String): Long
Alters the last access time of a key(s). Returns the number of existing keys specified. |
|
suspend fun RedisClient.touchManyAwait(keys: List<String>): Long
Alters the last access time of a key(s). Returns the number of existing keys specified. |
|
suspend fun RedisClient.ttlAwait(key: String): Long
Get the time to live for a key |
|
suspend fun RedisClient.typeAwait(key: String): String
Determine the type stored at key |
|
suspend fun RedisClient.unlinkAwait(key: String): Long
Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking. |
|
suspend fun RedisClient.unlinkManyAwait(keys: List<String>): Long
Delete multiple keys asynchronously in another thread. Otherwise it is just as DEL, but non blocking. |
|
suspend fun RedisClient.unsubscribeAwait(channels: List<String>): Unit
Stop listening for messages posted to the given channels |
|
suspend fun RedisClient.waitAwait(numSlaves: Long, timeout: Long): String
Wait for the synchronous replication of all the write commands sent in the context of the current connection. |
|
suspend fun RedisClient.zaddAwait(key: String, score: Double, member: String): Long
Add one or more members to a sorted set, or update its score if it already exists |
|
suspend fun RedisClient.zaddManyAwait(key: String, members: Map<String, Double>): Long
Add one or more members to a sorted set, or update its score if it already exists |
|
suspend fun RedisClient.zcardAwait(key: String): Long
Get the number of members in a sorted set |
|
suspend fun RedisClient.zcountAwait(key: String, min: Double, max: Double): Long
Count the members in a sorted set with scores within the given values |
|
suspend fun RedisClient.zincrbyAwait(key: String, increment: Double, member: String): String
Increment the score of a member in a sorted set |
|
suspend fun RedisClient.zinterstoreAwait(destkey: String, sets: List<String>, options: AggregateOptions): Long
Intersect multiple sorted sets and store the resulting sorted set in a new key |
|
suspend fun RedisClient.zinterstoreWeighedAwait(destkey: String, sets: Map<String, Double>, options: AggregateOptions): Long
Intersect multiple sorted sets and store the resulting sorted set in a new key using weights for scoring |
|
suspend fun RedisClient.zlexcountAwait(key: String, min: String, max: String): Long
Count the number of members in a sorted set between a given lexicographical range |
|
suspend fun RedisClient.zrangeAwait(key: String, start: Long, stop: Long): JsonArray
Return a range of members in a sorted set, by index |
|
suspend fun RedisClient.zrangeWithOptionsAwait(key: String, start: Long, stop: Long, options: RangeOptions): JsonArray
Return a range of members in a sorted set, by index |
|
suspend fun RedisClient.zrangebylexAwait(key: String, min: String, max: String, options: LimitOptions): JsonArray
Return a range of members in a sorted set, by lexicographical range |
|
suspend fun RedisClient.zrangebyscoreAwait(key: String, min: String, max: String, options: RangeLimitOptions): JsonArray
Return a range of members in a sorted set, by score |
|
suspend fun RedisClient.zrankAwait(key: String, member: String): Long
Determine the index of a member in a sorted set |
|
suspend fun RedisClient.zremAwait(key: String, member: String): Long
Remove one member from a sorted set |
|
suspend fun RedisClient.zremManyAwait(key: String, members: List<String>): Long
Remove one or more members from a sorted set |
|
suspend fun RedisClient.zremrangebylexAwait(key: String, min: String, max: String): Long
Remove all members in a sorted set between the given lexicographical range |
|
suspend fun RedisClient.zremrangebyrankAwait(key: String, start: Long, stop: Long): Long
Remove all members in a sorted set within the given indexes |
|
suspend fun RedisClient.zremrangebyscoreAwait(key: String, min: String, max: String): Long
Remove all members in a sorted set within the given scores |
|
suspend fun RedisClient.zrevrangeAwait(key: String, start: Long, stop: Long, options: RangeOptions): JsonArray
Return a range of members in a sorted set, by index, with scores ordered from high to low |
|
suspend fun RedisClient.zrevrangebylexAwait(key: String, max: String, min: String, options: LimitOptions): JsonArray
Return a range of members in a sorted set, by score, between the given lexicographical range with scores ordered from high to low |
|
suspend fun RedisClient.zrevrangebyscoreAwait(key: String, max: String, min: String, options: RangeLimitOptions): JsonArray
Return a range of members in a sorted set, by score, with scores ordered from high to low |
|
suspend fun RedisClient.zrevrankAwait(key: String, member: String): Long
Determine the index of a member in a sorted set, with scores ordered from high to low |
|
suspend fun RedisClient.zscanAwait(key: String, cursor: String, options: ScanOptions): JsonArray
Incrementally iterate sorted sets elements and associated scores |
|
suspend fun RedisClient.zscoreAwait(key: String, member: String): String
Get the score associated with the given member in a sorted set |
|
suspend fun RedisClient.zunionstoreAwait(destkey: String, sets: List<String>, options: AggregateOptions): Long
Add multiple sorted sets and store the resulting sorted set in a new key |
|
suspend fun RedisClient.zunionstoreWeighedAwait(key: String, sets: Map<String, Double>, options: AggregateOptions): Long
Add multiple sorted sets using weights, and store the resulting sorted set in a new key |