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)
MemcachedHashingStrategyThe hash for each node based on the node information and repetition.
hash in interface MemcachedHashingStrategyinfo - the node inforepetition - the repetitionCopyright © 2017 Couchbase, Inc.. All rights reserved.