接口的使用
cn.taketoday.cache.interceptor.CacheResolver
使用CacheResolver的程序包
程序包
说明
Annotations and supporting classes for declarative cache management.
AOP-based solution for declarative caching demarcation.
-
cn.taketoday.cache.annotation中CacheResolver的使用
类型参数类型为CacheResolver的cn.taketoday.cache.annotation中的字段修饰符和类型方法说明default CacheResolverCachingConfigurer.cacheResolver()Return theCacheResolverbean to use to resolve regular caches for annotation-driven cache management. -
cn.taketoday.cache.interceptor中CacheResolver的使用
修饰符和类型类说明classA baseCacheResolverimplementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.classACacheResolverthat forces the resolution to a configurable collection of name(s) against a givenCacheManager.classA simpleCacheResolverthat resolves theCacheinstance(s) based on a configurableCacheManagerand the name of the cache(s) as provided bygetCacheNames().修饰符和类型方法说明CacheAspectSupport.getCacheResolver()Return the defaultCacheResolverthat this cache aspect delegates to.修饰符和类型方法说明protected Collection<? extends Cache>CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) voidCacheAspectSupport.setCacheResolver(CacheResolver cacheResolver) Set the defaultCacheResolverthat this cache aspect should delegate to if no specific cache resolver has been set for the operation.voidCacheProxyFactoryBean.setCacheResolver(CacheResolver cacheResolver) Set the defaultCacheResolverthat this cache aspect should delegate to if no specific cache resolver has been set for the operation.参数类型为CacheResolver的cn.taketoday.cache.interceptor中的构造器限定符构造器说明CacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)