@FunctionalInterface public interface CacheKeyPrefix
CacheKeyPrefix provides a hook for creating custom prefixes prepended to the actual key stored in
 Redis.| Modifier and Type | Field and Description | 
|---|---|
| static String | SEPARATORDefault separator. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | compute(String cacheName)Compute the prefix for the actual key stored in Redis. | 
| static CacheKeyPrefix | prefixed(String prefix)Creates a  CacheKeyPrefixscheme that prefixes cache keys with the givenprefix. | 
| static CacheKeyPrefix | simple()Creates a default  CacheKeyPrefixscheme that prefixes cache keys withcacheNamefollowed by double
 colons. | 
static final String SEPARATOR
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.static CacheKeyPrefix prefixed(String prefix)
CacheKeyPrefix scheme that prefixes cache keys with the given prefix. The prefix is
 prepended to the cacheName followed by double colons. A prefix redis- with a cache named
 myCache results in redis-myCache::.prefix - must not be null.CacheKeyPrefix scheme.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.