class RedisKeyValueStore : KeyValueStore
(source)
A key-value store backed by Redis.
uri
- The uri to the Redis store.
RedisKeyValueStore(port: Int = 6379, address: InetAddress = InetAddress.getLoopbackAddress()) RedisKeyValueStore(uri: String)
Open a Redis-backed key-value store. |
fun close(): Unit |
|
suspend fun get(key: Bytes): Bytes?
Retrieves data from the store. |
|
suspend fun put(key: Bytes, value: Bytes): Unit
Puts data into the store. |
open fun getAsync(key: Bytes): AsyncResult<Bytes?> open fun getAsync(dispatcher: CoroutineDispatcher, key: Bytes): AsyncResult<Bytes?>
Retrieves data from the store. |
|
open fun putAsync(key: Bytes, value: Bytes): AsyncCompletion open fun putAsync(dispatcher: CoroutineDispatcher, key: Bytes, value: Bytes): AsyncCompletion
Puts data into the store. |
fun codec(): RedisCodec<Bytes, Bytes>
A RedisCodec for working with Bytes classes. |
|
fun open(uri: String): RedisKeyValueStore fun open(port: Int): RedisKeyValueStore fun open(address: InetAddress): RedisKeyValueStore fun open(port: Int, address: InetAddress): RedisKeyValueStore
Open a Redis-backed key-value store. |