Package org.apache.http.impl.client.cache.memcached
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.
-
ClassDescriptionSince the
HttpCacheStorageinterface 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.Provides for serialization and deserialization of higher-levelHttpCacheEntryobjects into byte arrays suitable for storage in memcached.CreatesMemcachedCacheEntryinstances that can be used for serializing and deserializingHttpCacheEntryinstances for storage in memcached.Default implementation ofMemcachedCacheEntryFactory.Default implementation ofMemcachedCacheEntry.This class is a storage backend that uses an external memcached for storing cached origin responses.Indicates a problem encountered when trying to map a logical "storage key" to a "cache key" suitable for use with memcached.Raised when there is a problem serializing or deserializing cache entries into a byte representation suitable for memcached storage.This is aKeyHashingSchemedecorator that simply adds a known prefix to the results of anotherKeyHashingScheme.This is aKeyHashingSchemebased on the SHA-256 algorithm.