public class Sdk2CompatibleMemcachedHashingStrategy extends Object implements MemcachedHashingStrategy
It should only be used if code is migrated from Java SDK 2 to SDK 3 and access to cached documents need to be
preserved. For everything else (especially for interop with libcouchbase-based SDKs) we strongly recommend the
default StandardMemcachedHashingStrategy.
| Modifier and Type | Field and Description |
|---|---|
static Sdk2CompatibleMemcachedHashingStrategy |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
String |
hash(KetamaRingNode info,
int repetition)
The hash for each node based on the node information and repetition.
|
public static Sdk2CompatibleMemcachedHashingStrategy INSTANCE
public String hash(KetamaRingNode info, int repetition)
MemcachedHashingStrategyhash in interface MemcachedHashingStrategyinfo - the node inforepetition - the repetitionCopyright © 2024 Couchbase, Inc.. All rights reserved.