Package

com.redis

cluster

Permalink

package cluster

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. cluster
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait BaseOps extends BaseApi

    Permalink
  2. case class ClusterNode(nodename: String, host: String, port: Int, maxIdle: Int = 8, database: Int = 0, secret: Option[Any] = None, timeout: Int = 0, maxConnections: Int = ..., poolWaitTimeout: Long = 3000) extends Product with Serializable

    Permalink

    a level of abstraction for each node decoupling it from the address.

    a level of abstraction for each node decoupling it from the address. A node is now identified by a name, so functions like replaceServer works seamlessly.

  3. trait EvalOps extends EvalApi

    Permalink
  4. trait HashOps extends HashApi

    Permalink
  5. case class HashRing[T](nodes: List[T], replicas: Int) extends Product with Serializable

    Permalink

    Consistent Hashing node ring abstraction.

  6. class IdentifiableRedisClientPool extends RedisClientPool

    Permalink
  7. trait KeyTag extends AnyRef

    Permalink

    Consistent hashing distributes keys across multiple servers.

    Consistent hashing distributes keys across multiple servers. But there are situations like sorting or computing set intersections or operations like rpoplpush in redis that require all keys to be collocated on the same server.

    One of the techniques that redis encourages for such forced key locality is called key tagging. See Redis Cluster data sharding for reference.

    (...) but the gist is that if there is a substring between {} brackets in a key, only what is inside the string is hashed, so for example this{foo}key and another{foo}key are guaranteed to be in the same hash slot, and can be used together in a command with multiple keys as arguments.

  8. trait ListOps extends ListApi

    Permalink
  9. trait NodeOps extends NodeApi

    Permalink
  10. trait Reconnectable extends Log

    Permalink
  11. class RedisCluster extends RedisClusterOps with WithHashRing[IdentifiableRedisClientPool] with BaseOps with NodeOps with StringOps with ListOps with SetOps with SortedSetOps with EvalOps with HashOps

    Permalink
  12. trait RedisClusterOps extends AutoCloseable

    Permalink
  13. trait SetOps extends SetApi

    Permalink
  14. trait SortedSetOps extends SortedSetApi

    Permalink
  15. trait StringOps extends StringApi

    Permalink
  16. trait WithHashRing[T] extends AnyRef

    Permalink

Value Members

  1. object KeyTag

    Permalink
  2. def createSet[T](): Set[T]

    Permalink
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped