public interface CommandCacheable<R,T>
| Modifier and Type | Method and Description |
|---|---|
default String |
cacheKey(R request)
Get cache key, if
null this command result will not be cached |
default Collection<String> |
evictKeys(R request)
Get evict keys, if
null this command will not trigger evict in cache |
default Class<T> |
responseClass()
Get return class for cache serialization
|
default String cacheKey(R request)
null this command result will not be cachedrequest - command requestdefault Collection<String> evictKeys(R request)
null this command will not trigger evict in cacherequest - command requestCopyright © 2021. All rights reserved.