Package net.spy.memcached
package net.spy.memcached
Memcached client and transformation utils
Usage should be pretty straightforward. Get a MemcachedClient
object and start setting and
getting stuff in memcached.
All operations are asynchronous internally, but most at least provide synchronous convenience interfaces. Some only provide synchronous interfaces (getVersion, getStats) and some only provide asynchronous interfaces (delete, flush). That'll probably all get cleared up if it bothers anyone.
You may also find the online examples helpful.
-
ClassDescriptionConvenience utilities for simplifying common address parsing.NodeLocator implementation for dealing with simple array lookups using a modulus of the hash code and node list length.BaseCacheMap<V>Base class for a Map interface to memcached.Default connection factory for binary wire protocol connections.Factory for creating Operations to be broadcast.Cached data with its attributes.A Map interface to memcached.CASMutation<T>Defines a mutation mechanism for a high-level CAS client interface.CASMutator<T>Object that provides mutation via CAS over a given memcache client.Response codes for a CAS operation.CASValue<T>A value with a CAS identifier.Factory for creating instances of MemcachedConnection.Builder for more easily configuring a ConnectionFactory.Type of node locator to use.Type of protocol to use for connections.Users of this interface will be notified when changes to the state of connections take place.Default implementation of ConnectionFactory.Known hashing algorithms for locating a server for a key.Failure modes for node failures.Intents to provide hash for locating a server for a key.Registry of known hashing algorithms for locating a server for a key.ConnectionFactory instance that sets up a ketama compatible connection.Implements an Iterator which the KetamaNodeLoctaor may return to a client for iterating through alternate nodes for a given key.Known key formats used in Ketama for assigning nodes around the ringThis is an implementation of the Ketama consistent hash strategy from last.fm.Utilities for processing key values.Client to a memcached server.This interface is provided as a helper for testing clients of the MemcachedClient.Main class for handling connections to a memcached cluster.Interface defining a connection to a memcached server.Interface for locating a node by hash value.Response codes for a Observe operation.Factory that builds operations for protocol handlers.Thrown by
MemcachedClient
when any internal operations timeout.PersistTo codes for a Observe operation.ReplicateTo codes for a Observe operation.A tap client for memcached.A TapConnectionProvider.