@FunctionalInterface public interface CacheResolver
Cache instance(s) to use for an intercepted method invocation.
Implementations must be thread-safe.
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<? extends Cache> |
resolveCaches(CacheOperationInvocationContext<?> context)
Return the cache(s) to use for the specified invocation.
|
Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)
context - the context of the particular invocationnull)IllegalStateException - if cache resolution failed