Interface MemcachedCacheEntryFactory

    • Method Detail

      • getMemcachedCacheEntry

        MemcachedCacheEntry getMemcachedCacheEntry​(java.lang.String storageKey,
                                                   HttpCacheEntry entry)
        Creates a new 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.
        Parameters:
        storageKey - storage key under which the entry will be logically stored
        entry - the cache entry to store
        Returns:
        a MemcachedCacheEntry ready to provide a serialized representation