public class DefaultMemcachedHashingStrategy extends Object implements MemcachedHashingStrategy
The default memcache bucket hashing strategy, compatible with 2.x Java SDK.
Modifier and Type | Field and Description |
---|---|
static DefaultMemcachedHashingStrategy |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
hash(NodeInfo info,
int repetition)
The hash for each node based on the node information and repetition.
|
public static DefaultMemcachedHashingStrategy INSTANCE
public String hash(NodeInfo info, int repetition)
MemcachedHashingStrategy
The hash for each node based on the node information and repetition.
hash
in interface MemcachedHashingStrategy
info
- the node inforepetition
- the repetitionCopyright © 2018 Couchbase, Inc.. All rights reserved.