Packages

p

com.redis

cluster

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
  2. case class ClusterNode(nodename: String, host: String, port: Int, database: Int = 0, maxIdle: Int = 8, secret: Option[Any] = None, timeout: Int = 0) extends Product with Serializable

    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
  4. trait HashOps extends HashApi
  5. case class HashRing[T](nodes: List[T], replicas: Int) extends Product with Serializable

    Consistent Hashing node ring abstraction.

  6. class IdentifiableRedisClientPool extends RedisClientPool
  7. trait KeyTag extends AnyRef

    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
  9. trait NodeOps extends NodeApi
  10. trait Reconnectable extends Log
  11. class RedisCluster extends RedisClusterOps with WithHashRing[IdentifiableRedisClientPool] with BaseOps with NodeOps with StringOps with ListOps with SetOps with SortedSetOps with EvalOps with HashOps
  12. trait RedisClusterOps extends AutoCloseable
  13. trait SetOps extends SetApi
  14. trait SortedSetOps extends SortedSetApi
  15. trait StringOps extends StringApi
  16. trait WithHashRing[T] extends AnyRef

Value Members

  1. def createSet[T](): Set[T]
    Attributes
    protected
  2. object KeyTag

Inherited from AnyRef

Inherited from Any

Ungrouped