net.spy.memcached
Interface HashAlgorithm

All Known Implementing Classes:
DefaultHashAlgorithm

public interface HashAlgorithm

Intents to provide hash for locating a server for a key.


Method Summary
 long hash(java.lang.String k)
          Compute the hash for the given key.
 

Method Detail

hash

long hash(java.lang.String k)
Compute the hash for the given key.

Returns:
a positive integer hash


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.