public class LegacyMemcachedHashingStrategy extends Object implements MemcachedHashingStrategy
The legacy memcache bucket hashing strategy, compatible with Java SDK 1.x.
Modifier and Type | Field and Description |
---|---|
static LegacyMemcachedHashingStrategy |
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 LegacyMemcachedHashingStrategy 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 © 2017 Couchbase, Inc.. All rights reserved.