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
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.Provides for serialization and deserialization of higher-levelHttpCacheEntry
objects into byte arrays suitable for storage in memcached.CreatesMemcachedCacheEntry
instances that can be used for serializing and deserializingHttpCacheEntry
instances 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 aKeyHashingScheme
decorator that simply adds a known prefix to the results of anotherKeyHashingScheme
.This is aKeyHashingScheme
based on the SHA-256 algorithm.