Package org.apache.http.impl.client.cache.memcached
This package contains a storage backend based on
memcached
that can be plugged into
a CachingHttpClient
and
used for storing cache entries.
-
Interface Summary Interface Description KeyHashingScheme Since theHttpCacheStorage
interface expects to use variant-annotated URLs for its storage keys, but Memcached has a maximum key size, we need to support mapping storage keys to cache keys.MemcachedCacheEntry Provides for serialization and deserialization of higher-levelHttpCacheEntry
objects into byte arrays suitable for storage in memcached.MemcachedCacheEntryFactory CreatesMemcachedCacheEntry
instances that can be used for serializing and deserializingHttpCacheEntry
instances for storage in memcached. -
Class Summary Class Description MemcachedCacheEntryFactoryImpl Default implementation ofMemcachedCacheEntryFactory
.MemcachedCacheEntryImpl Default implementation ofMemcachedCacheEntry
.MemcachedHttpCacheStorage This class is a storage backend that uses an external memcached for storing cached origin responses.PrefixKeyHashingScheme This is aKeyHashingScheme
decorator that simply adds a known prefix to the results of anotherKeyHashingScheme
.SHA256KeyHashingScheme This is aKeyHashingScheme
based on the SHA-256 algorithm. -
Exception Summary Exception Description MemcachedKeyHashingException Indicates a problem encountered when trying to map a logical "storage key" to a "cache key" suitable for use with memcached.MemcachedSerializationException Raised when there is a problem serializing or deserializing cache entries into a byte representation suitable for memcached storage.