package client
- Alphabetic
- Public
- Protected
Type Members
- trait BytesCodec[T] extends Codec[T, Array[Byte]]
- class ClusterConnection extends RedisConnection
Represents a connection to a set of redis servers (cluster), extending the RedisConnection interface that defines the set of methods to create a connection that can encode in
UTF
andByteArray
with custom Codecs. - sealed trait Codec[T, R] extends AnyRef
A Codec encodes keys and values sent to Redis, and decodes keys and values in the command output.
- case class RedisCmd[K, V](hash: HashCommands[K, V], key: KeyCommands[K, V], list: ListCommands[K, V], server: ServerCommands[K, V], set: SetCommands[K, V], sortedSet: SortedSetCommands[K, V], string: StringCommands[K, V]) extends Product with Serializable
Aggregates the different redis commands into a single cmd instance.
- trait RedisConnection extends AnyRef
Trait that defines the generic set of methods to connect with Redis.
Trait that defines the generic set of methods to connect with Redis. It supports encoding and decoding in
Utf
andByteArray
with custom codecs.It currently supports ClusterConnection and StandaloneConnection for cluster and single connections to Redis.
- class RedisUri extends AnyRef
Contains connection details for the communication with standalone redis servers.
Contains connection details for the communication with standalone redis servers. Allows to provide the database, client name, password and timeouts and more.
You have different ways to create a RedisUri:
Example
//using an URI RedisUri("redis://localhost:6379") //using host and port RedisUri("localhost", 6379) //then you can pass custom options RedisUri("localhost", 6379) .withDatabase(1) .withPassword("Alice123") //this will normally come from a stored secret .withClientName("companyX")
- trait UtfCodec[T] extends Codec[T, String]