tuweni / org.apache.tuweni.kv / RedisKeyValueStore / <init>

<init>

RedisKeyValueStore(port: Int = 6379, address: InetAddress = InetAddress.getLoopbackAddress(), keySerializer: (K) -> Bytes, valueSerializer: (V) -> Bytes, keyDeserializer: (Bytes) -> K, valueDeserializer: (Bytes) -> V)

Open a Redis-backed key-value store.

Parameters

port - The port for the Redis store.

address - The address for the Redis store.

keySerializer - the serializer of key objects to bytes

valueSerializer - the serializer of value objects to bytes

keyDeserializer - the deserializer of keys from bytes

valueDeserializer - the deserializer of values from bytes

RedisKeyValueStore(uri: String, keySerializer: (K) -> Bytes, valueSerializer: (V) -> Bytes, keyDeserializer: (Bytes) -> K, valueDeserializer: (Bytes) -> V, coroutineContext: CoroutineContext = Dispatchers.IO)

Open a Redis-backed key-value store.

Constructor
Open a Redis-backed key-value store.