Package com.couchbase.client.core.node
Interface MemcachedHashingStrategy
- All Known Implementing Classes:
Sdk2CompatibleMemcachedHashingStrategy
,StandardMemcachedHashingStrategy
This interface defines different hashing strategies used for ketama hashing in memcached buckets.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionhash
(KetamaRingNode info, int repetition) The hash for each node based on the node information and repetition.
-
Method Details
-
hash
The hash for each node based on the node information and repetition.- Parameters:
info
- the node inforepetition
- the repetition- Returns:
- the hashed node
-