# 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.

See: Description

Interface Summary
Interface | Description
--- | ---
KeyHashingScheme | Since the `HttpCacheStorage` 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-level `HttpCacheEntry` objects into byte arrays suitable for storage in memcached.
MemcachedCacheEntryFactory | Creates `MemcachedCacheEntry` instances that can be used for serializing and deserializing `HttpCacheEntry` instances for storage in memcached.

Class Summary
Class | Description
--- | ---
MemcachedCacheEntryFactoryImpl | Default implementation of `MemcachedCacheEntryFactory`.
MemcachedCacheEntryImpl | Default implementation of `MemcachedCacheEntry`.
MemcachedHttpCacheStorage | This class is a storage backend that uses an external memcached for storing cached origin responses.
PrefixKeyHashingScheme | This is a `KeyHashingScheme` decorator that simply adds a known prefix to the results of another `KeyHashingScheme`.
SHA256KeyHashingScheme | This is a `KeyHashingScheme` 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.

## Package org.apache.http.impl.client.cache.memcached Description

This package contains a storage backend based on memcached that can be plugged into a `CachingHttpClient` and used for storing cache entries.