public interface KeyHashingScheme
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. Clients can implement this
interface to change the way the mapping is done (for example, to add a prefix
to all cache keys to provide a form of memcached namespacing).String hash(String storageKey)
storageKey
- what the higher-level HTTP cache wants to use
as its key for looking up cache entriesCopyright © 2010–2013 The Apache Software Foundation. All rights reserved.