Interface MemcachedHashingStrategy

All Known Implementing Classes:
Sdk2CompatibleMemcachedHashingStrategy, StandardMemcachedHashingStrategy

@Internal public interface MemcachedHashingStrategy
This interface defines different hashing strategies used for ketama hashing in memcached buckets.
Since:
2.3.6
  • Method Summary

    Modifier and Type
    Method
    Description
    hash(NodeInfo info, int repetition)
    The hash for each node based on the node information and repetition.
  • Method Details

    • hash

      String hash(NodeInfo info, int repetition)
      The hash for each node based on the node information and repetition.
      Parameters:
      info - the node info
      repetition - the repetition
      Returns:
      the hashed node