Package net.spy.memcached


Packages

package  ops
package  protocol
package  transcoders

Classes

class  AddrUtil
class  ArrayModNodeLocator
class  BinaryConnectionFactory
interface  BroadcastOpFactory
class  CachedData
interface  CASMutation< T >
class  CASMutator< T >
class  CASValue< T >
interface  ConnectionFactory
class  DefaultConnectionFactory
class  KetamaConnectionFactory
class  KetamaNodeLocator
class  KeyUtil
class  MemcachedClient
class  MemcachedConnection
interface  MemcachedNode
interface  NodeLocator
interface  OperationFactory
class  OperationTimeoutException

Enumerations

enum  CASResponse { OK, NOT_FOUND, EXISTS }
enum  HashAlgorithm {
  NATIVE_HASH, CRC32_HASH, FNV1_64_HASH, FNV1A_64_HASH,
  FNV1_32_HASH, FNV1A_32_HASH, KETAMA_HASH
}

Enumeration Type Documentation

Response codes for a CAS operation.

Enumerator:
OK  Status indicating that the CAS was successful and the new value is stored in the cache.
NOT_FOUND  Status indicating the value was not found in the cache (an add operation may be issued to store the value).
EXISTS  Status indicating the value was found in the cache, but exists with a different CAS value than expected. In this case, the value must be refetched and the CAS operation tried again.

Known hashing algorithms for locating a server for a key. Note that all hash algorithms return 64-bits of hash, but only the lower 32-bits are significant. This allows a positive 32-bit number to be returned for all cases.

Enumerator:
NATIVE_HASH  Native hash (String.hashCode()).
CRC32_HASH  CRC32_HASH as used by the perl API. This will be more consistent both across multiple API users as well as java versions, but is mostly likely significantly slower.
FNV1_64_HASH  FNV hashes are designed to be fast while maintaining a low collision rate. The FNV speed allows one to quickly hash lots of data while maintaining a reasonable collision rate.

See also:
http://www.isthe.com/chongo/tech/comp/fnv/

http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash

FNV1A_64_HASH  Variation of FNV.
FNV1_32_HASH  32-bit FNV1.
FNV1A_32_HASH  32-bit FNV1a.
KETAMA_HASH  MD5-based hash algorithm used by ketama.


Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8