package cluster
- Alphabetic
- By Inheritance
- cluster
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait BaseOps extends BaseApi
- 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.
- trait EvalOps extends EvalApi
- trait HashOps extends HashApi
- case class HashRing[T](nodes: List[T], replicas: Int) extends Product with Serializable
Consistent Hashing node ring abstraction.
- class IdentifiableRedisClientPool extends RedisClientPool
- 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.
- trait ListOps extends ListApi
- trait NodeOps extends NodeApi
- trait Reconnectable extends Log
- class RedisCluster extends RedisClusterOps with WithHashRing[IdentifiableRedisClientPool] with BaseOps with NodeOps with StringOps with ListOps with SetOps with SortedSetOps with EvalOps with HashOps
- trait RedisClusterOps extends AutoCloseable
- trait SetOps extends SetApi
- trait SortedSetOps extends SortedSetApi
- trait StringOps extends StringApi
- trait WithHashRing[T] extends AnyRef