接口的使用
org.springframework.cache.CacheManager
使用CacheManager的程序包 程序包 说明 org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.org.springframework.cache.caffeine Support classes for the open source cache in Caffeine library, allowing to set up Caffeine caches within Spring's cache abstraction.org.springframework.cache.concurrent Implementation package forjava.util.concurrentbased caches.org.springframework.cache.ehcache Support classes for the open source cache EhCache 2.x, allowing to set up an EhCache CacheManager and Caches as beans in a Spring context.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache Implementation package for JSR-107 (javax.cache aka "JCache") based caches.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.cache.support Support classes for the org.springframework.cache package.org.springframework.cache.transaction Transaction-aware decorators for the org.springframework.cache package.org.springframework.web.reactive.resource Support classes for serving static resources.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.cache.annotation中CacheManager的使用
类型参数类型为CacheManager的org.springframework.cache.annotation中的字段 修饰符和类型 字段 说明 protected Supplier<CacheManager>AbstractCachingConfiguration. cacheManager返回CacheManager的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 CacheManagerCachingConfigurer. cacheManager()Return the cache manager bean to use for annotation-driven cache management.CacheManagerCachingConfigurerSupport. cacheManager()org.springframework.cache.caffeine中CacheManager的使用
实现CacheManager的org.springframework.cache.caffeine中的类 修饰符和类型 类 说明 classCaffeineCacheManagerCacheManagerimplementation that lazily buildsCaffeineCacheinstances for eachCaffeineCacheManager.getCache(java.lang.String)request.org.springframework.cache.concurrent中CacheManager的使用
实现CacheManager的org.springframework.cache.concurrent中的类 修饰符和类型 类 说明 classConcurrentMapCacheManagerCacheManagerimplementation that lazily buildsConcurrentMapCacheinstances for eachConcurrentMapCacheManager.getCache(java.lang.String)request.org.springframework.cache.ehcache中CacheManager的使用
实现CacheManager的org.springframework.cache.ehcache中的类 修饰符和类型 类 说明 classEhCacheCacheManagerCacheManager backed by an EhCacheCacheManager.org.springframework.cache.interceptor中CacheManager的使用
返回CacheManager的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 CacheManagerAbstractCacheResolver. getCacheManager()Return theCacheManagerthat this instance uses.参数类型为CacheManager的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 voidAbstractCacheResolver. setCacheManager(CacheManager cacheManager)Set theCacheManagerthat this instance should use.voidCacheAspectSupport. setCacheManager(CacheManager cacheManager)Set theCacheManagerto use to create a defaultCacheResolver.voidCacheProxyFactoryBean. setCacheManager(CacheManager cacheManager)Set theCacheManagerto use to create a defaultCacheResolver.参数类型为CacheManager的org.springframework.cache.interceptor中的构造器 构造器 说明 AbstractCacheResolver(CacheManager cacheManager)Construct a newAbstractCacheResolverfor the givenCacheManager.NamedCacheResolver(CacheManager cacheManager, String... cacheNames)SimpleCacheResolver(CacheManager cacheManager)Construct a newSimpleCacheResolverfor the givenCacheManager.org.springframework.cache.jcache中CacheManager的使用
实现CacheManager的org.springframework.cache.jcache中的类 修饰符和类型 类 说明 classJCacheCacheManagerCacheManagerimplementation backed by a JCachejavax.cache.CacheManager.org.springframework.cache.jcache.interceptor中CacheManager的使用
返回CacheManager的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 CacheManagerDefaultJCacheOperationSource. getCacheManager()Return the specified cache manager to use, if any.protected CacheManagerDefaultJCacheOperationSource. getDefaultCacheManager()参数类型为CacheManager的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 voidDefaultJCacheOperationSource. setCacheManager(CacheManager cacheManager)Set the defaultCacheManagerto use to lookup cache by name.参数类型为CacheManager的org.springframework.cache.jcache.interceptor中的构造器 构造器 说明 SimpleExceptionCacheResolver(CacheManager cacheManager)类型变量类型为CacheManager的org.springframework.cache.jcache.interceptor中的构造器参数 构造器 说明 DefaultJCacheOperationSource(Supplier<CacheManager> cacheManager, Supplier<CacheResolver> cacheResolver, Supplier<CacheResolver> exceptionCacheResolver, Supplier<KeyGenerator> keyGenerator)Construct a newDefaultJCacheOperationSourcewith the given cache manager, cache resolver and key generator suppliers, applying the corresponding default if a supplier is not resolvable.org.springframework.cache.support中CacheManager的使用
实现CacheManager的org.springframework.cache.support中的类 修饰符和类型 类 说明 classAbstractCacheManagerAbstract base class implementing the commonCacheManagermethods.classCompositeCacheManagerCompositeCacheManagerimplementation that iterates over a given collection of delegateCacheManagerinstances.classNoOpCacheManagerA basic, no operationCacheManagerimplementation suitable for disabling caching, typically used for backing cache declarations without an actual backing store.classSimpleCacheManagerSimple cache manager working against a given collection of caches.类型变量类型为CacheManager的org.springframework.cache.support中的方法参数 修饰符和类型 方法 说明 voidCompositeCacheManager. setCacheManagers(Collection<CacheManager> cacheManagers)Specify the CacheManagers to delegate to.参数类型为CacheManager的org.springframework.cache.support中的构造器 构造器 说明 CompositeCacheManager(CacheManager... cacheManagers)Construct a CompositeCacheManager from the given delegate CacheManagers.org.springframework.cache.transaction中CacheManager的使用
实现CacheManager的org.springframework.cache.transaction中的类 修饰符和类型 类 说明 classAbstractTransactionSupportingCacheManagerBase class for CacheManager implementations that want to support built-in awareness of Spring-managed transactions.classTransactionAwareCacheManagerProxyProxy for a targetCacheManager, exposing transaction-awareCacheobjects which synchronize theirCache.put(java.lang.Object, java.lang.Object)operations with Spring-managed transactions (through Spring'sTransactionSynchronizationManager, performing the actual cache put operation only in the after-commit phase of a successful transaction.参数类型为CacheManager的org.springframework.cache.transaction中的方法 修饰符和类型 方法 说明 voidTransactionAwareCacheManagerProxy. setTargetCacheManager(CacheManager targetCacheManager)Set the target CacheManager to proxy.参数类型为CacheManager的org.springframework.cache.transaction中的构造器 构造器 说明 TransactionAwareCacheManagerProxy(CacheManager targetCacheManager)Create a new TransactionAwareCacheManagerProxy for the given target CacheManager.org.springframework.web.reactive.resource中CacheManager的使用
参数类型为CacheManager的org.springframework.web.reactive.resource中的构造器 构造器 说明 CachingResourceResolver(CacheManager cacheManager, String cacheName)CachingResourceTransformer(CacheManager cacheManager, String cacheName)org.springframework.web.servlet.resource中CacheManager的使用
参数类型为CacheManager的org.springframework.web.servlet.resource中的构造器 构造器 说明 CachingResourceResolver(CacheManager cacheManager, String cacheName)CachingResourceTransformer(CacheManager cacheManager, String cacheName)