类 SimpleCacheResolver
java.lang.Object
cn.taketoday.cache.interceptor.AbstractCacheResolver
cn.taketoday.cache.interceptor.SimpleCacheResolver
- 所有已实现的接口:
InitializingBean,CacheResolver
A simple
CacheResolver that resolves the Cache instance(s)
based on a configurable CacheManager and the name of the
cache(s) as provided by getCacheNames().- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器构造器说明Construct a newSimpleCacheResolver.SimpleCacheResolver(CacheManager cacheManager) Construct a newSimpleCacheResolverfor the givenCacheManager. -
方法概要
修饰符和类型方法说明protected Collection<String>getCacheNames(CacheOperationInvocationContext<?> context) Provide the name of the cache(s) to resolve against the current cache manager.从类继承的方法 cn.taketoday.cache.interceptor.AbstractCacheResolver
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager
-
构造器详细资料
-
SimpleCacheResolver
public SimpleCacheResolver()Construct a newSimpleCacheResolver. -
SimpleCacheResolver
Construct a newSimpleCacheResolverfor the givenCacheManager.- 参数:
cacheManager- the CacheManager to use
-
-
方法详细资料
-
getCacheNames
从类复制的说明:AbstractCacheResolverProvide the name of the cache(s) to resolve against the current cache manager.It is acceptable to return
nullto indicate that no cache could be resolved for this invocation.- 指定者:
getCacheNames在类中AbstractCacheResolver- 参数:
context- the context of the particular invocation- 返回:
- the cache name(s) to resolve, or
nullif no cache should be resolved
-