Packages

package client

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait BytesCodec[T] extends Codec[T, Array[Byte]]
  2. 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 and ByteArray with custom Codecs.

  3. 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.

  4. 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.

    Aggregates the different redis commands into a single cmd instance.

    See also

    Hash, Key, List, Server, Set, SortedSet, String commands.

  5. 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 and ByteArray with custom codecs.

    It currently supports ClusterConnection and StandaloneConnection for cluster and single connections to Redis.

  6. 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")
  7. trait UtfCodec[T] extends Codec[T, String]

Value Members

  1. object Codec
  2. object RedisConnection

    An object that provides an aggregation of all the different Redis Apis.

    An object that provides an aggregation of all the different Redis Apis. They can be equally accessed independently or from this object.

  3. object RedisUri

Ungrouped