|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MemcachedCacheEntryFactory
Creates MemcachedCacheEntry
instances that can be used for
serializing and deserializing HttpCacheEntry
instances for
storage in memcached.
Method Summary | |
---|---|
MemcachedCacheEntry |
getMemcachedCacheEntry(String storageKey,
HttpCacheEntry entry)
Creates a new MemcachedCacheEntry for storing the
given HttpCacheEntry under the given storage key. |
MemcachedCacheEntry |
getUnsetCacheEntry()
Creates an "unset" MemcachedCacheEntry ready to accept
a serialized representation via MemcachedCacheEntry.set(byte[])
and deserialize it into a storage key and a HttpCacheEntry . |
Method Detail |
---|
MemcachedCacheEntry getMemcachedCacheEntry(String storageKey, HttpCacheEntry entry)
MemcachedCacheEntry
for storing the
given HttpCacheEntry
under the given storage key. Since
we are hashing storage keys into cache keys to accommodate
limitations in memcached's key space, it is possible to have
cache collisions. Therefore, we store the storage key along
with the HttpCacheEntry
so it can be compared
on retrieval and thus detect collisions.
storageKey
- storage key under which the entry will
be logically storedentry
- the cache entry to store
MemcachedCacheEntry
ready to provide
a serialized representationMemcachedCacheEntry getUnsetCacheEntry()
MemcachedCacheEntry
ready to accept
a serialized representation via MemcachedCacheEntry.set(byte[])
and deserialize it into a storage key and a HttpCacheEntry
.
MemcachedCacheEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |