接口 CacheResolver
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Determine the
Cache instance(s) to use for an intercepted method invocation.
Implementations must be thread-safe.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll
-
方法概要
修饰符和类型方法说明Collection<? extends Cache>resolveCaches(CacheOperationInvocationContext<?> context) Return the cache(s) to use for the specified invocation.
-
方法详细资料
-
resolveCaches
Return the cache(s) to use for the specified invocation.- 参数:
context- the context of the particular invocation- 返回:
- the cache(s) to use (never
null) - 抛出:
IllegalStateException- if cache resolution failed
-