Package com.couchbase.client.core.node
Class DefaultMemcachedHashingStrategy
java.lang.Object
com.couchbase.client.core.node.DefaultMemcachedHashingStrategy
- All Implemented Interfaces:
MemcachedHashingStrategy
The default memcache bucket hashing strategy, compatible with 2.x Java SDK.
- Since:
- 2.3.6
- Author:
- Michael Nitschinger
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
hash
Description copied from interface:MemcachedHashingStrategy
The hash for each node based on the node information and repetition.- Specified by:
hash
in interfaceMemcachedHashingStrategy
- Parameters:
info
- the node inforepetition
- the repetition- Returns:
- the hashed node
-