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).Modifier and Type | Method and Description |
---|---|
String |
hash(String storageKey)
Maps a storage key to a cache key.
|
String hash(String storageKey)
storageKey
- what the higher-level HTTP cache wants to use
as its key for looking up cache entriesCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.