This package contains a storage backend based on
that can be plugged into
used for storing cache entries.
Interface Summary Interface Description KeyHashingSchemeSince 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.
MemcachedCacheEntryProvides for serialization and deserialization of higher-level
HttpCacheEntryobjects into byte arrays suitable for storage in memcached.
MemcachedCacheEntryinstances that can be used for serializing and deserializing
HttpCacheEntryinstances for storage in memcached.
Class Summary Class Description MemcachedCacheEntryFactoryImplDefault implementation of
MemcachedCacheEntryImplDefault implementation of
MemcachedHttpCacheStorageThis class is a storage backend that uses an external memcached for storing cached origin responses. PrefixKeyHashingSchemeThis is a
KeyHashingSchemedecorator that simply adds a known prefix to the results of another
SHA256KeyHashingSchemeThis is a
KeyHashingSchemebased on the SHA-256 algorithm.
Exception Summary Exception Description MemcachedKeyHashingExceptionIndicates a problem encountered when trying to map a logical "storage key" to a "cache key" suitable for use with memcached. MemcachedSerializationExceptionRaised when there is a problem serializing or deserializing cache entries into a byte representation suitable for memcached storage.