@FunctionalInterface public interface CacheKeyPrefix
CacheKeyPrefix provides a hook for creating custom prefixes prepended to the actual key stored in
Redis.| Modifier and Type | Method and Description |
|---|---|
String |
compute(String cacheName)
Compute the prefix for the actual key stored in Redis.
|
static CacheKeyPrefix |
simple()
Creates a default
CacheKeyPrefix scheme that prefixes cache keys with cacheName followed by double
colons. |
String compute(String cacheName)
cacheName - will never be null.static CacheKeyPrefix simple()
CacheKeyPrefix scheme that prefixes cache keys with cacheName followed by double
colons. A cache named myCache will prefix all cache keys with myCache::.CacheKeyPrefix scheme.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.