public class SimpleCacheResolver extends AbstractCacheResolver
CacheResolver that resolves the Cache instance(s)
based on a configurable CacheManager and the name of the
cache(s) as provided by getCacheNames()BasicOperation.getCacheNames()| 构造器和说明 |
|---|
SimpleCacheResolver() |
SimpleCacheResolver(CacheManager cacheManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Collection<String> |
getCacheNames(CacheOperationInvocationContext<?> context)
Provide the name of the cache(s) to resolve against the current cache manager.
|
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManagerpublic SimpleCacheResolver()
public SimpleCacheResolver(CacheManager cacheManager)
protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)
AbstractCacheResolverIt is acceptable to return null to indicate that no cache could
be resolved for this invocation.
getCacheNames 在类中 AbstractCacheResolvercontext - the context of the particular invocationnull if no cache should be resolved