tuweni / org.apache.tuweni.kv / RedisKeyValueStore / open

open

@JvmStatic fun open(uri: String): RedisKeyValueStore<Bytes, Bytes> (source)

Open a Redis-backed key-value store using Bytes keys and values.

Parameters

uri - The uri to the Redis store.

Exceptions

IOException - If an I/O error occurs.

Return
A key-value store dealing with bytes.

@JvmStatic fun <K, V> open(uri: String, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): RedisKeyValueStore<K, V> (source)

Open a Redis-backed key-value store.

Parameters

uri - The uri to 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

Return
A key-value store.

@JvmStatic fun <K, V> open(port: Int, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): RedisKeyValueStore<K, V> (source)

Open a Redis-backed key-value store.

Parameters

port - The port 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

Return
A key-value store.

@JvmStatic fun <K, V> open(address: InetAddress, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): RedisKeyValueStore<K, V> (source)

Open a Redis-backed key-value store.

Parameters

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

Return
A key-value store.

@JvmStatic fun <K, V> open(port: Int, address: InetAddress, keySerializer: Function<K, Bytes>, valueSerializer: Function<V, Bytes>, keyDeserializer: Function<Bytes, K>, valueDeserializer: Function<Bytes, V>): RedisKeyValueStore<K, V> (source)

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

Return
A key-value store.