接口的使用
cn.taketoday.cache.Cache
使用Cache的程序包
程序包
说明
Caching System
Implementation package for
java.util.concurrent based caches.AOP-based solution for declarative caching demarcation.
-
cn.taketoday.cache中Cache的使用
返回Cache的cn.taketoday.cache中的方法 -
cn.taketoday.cache.concurrent中Cache的使用
-
cn.taketoday.cache.interceptor中Cache的使用
类型参数类型为Cache的cn.taketoday.cache.interceptor中的字段返回变量类型为Cache的类型的cn.taketoday.cache.interceptor中的方法修饰符和类型方法说明protected Collection<? extends Cache>CacheAspectSupport.CacheOperationContext.getCaches()protected Collection<? extends Cache>CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) Collection<? extends Cache>AbstractCacheResolver.resolveCaches(CacheOperationInvocationContext<?> context) Collection<? extends Cache>CacheResolver.resolveCaches(CacheOperationInvocationContext<?> context) Return the cache(s) to use for the specified invocation.参数类型为Cache的cn.taketoday.cache.interceptor中的方法修饰符和类型方法说明protected voidprotected voidExecuteevict(Object)/evictIfPresent(Object)on the specifiedCacheand invoke the error handler if an exception occurs.protected Cache.ValueWrapperExecuteget(Object)on the specifiedCacheand invoke the error handler if an exception occurs.protected voidExecuteput(Object, Object)on the specifiedCacheand invoke the error handler if an exception occurs.voidCacheErrorHandler.handleCacheClearError(RuntimeException exception, Cache cache) Handle the given runtime exception thrown by the cache provider when clearing the specifiedCache, possibly rethrowing it as a fatal exception.voidLoggingCacheErrorHandler.handleCacheClearError(RuntimeException exception, Cache cache) voidSimpleCacheErrorHandler.handleCacheClearError(RuntimeException exception, Cache cache) voidCacheErrorHandler.handleCacheEvictError(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when clearing an item with the specifiedkey, possibly rethrowing it as a fatal exception.voidLoggingCacheErrorHandler.handleCacheEvictError(RuntimeException exception, Cache cache, Object key) voidSimpleCacheErrorHandler.handleCacheEvictError(RuntimeException exception, Cache cache, Object key) voidCacheErrorHandler.handleCacheGetError(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when retrieving an item with the specifiedkey, possibly rethrowing it as a fatal exception.voidLoggingCacheErrorHandler.handleCacheGetError(RuntimeException exception, Cache cache, Object key) voidSimpleCacheErrorHandler.handleCacheGetError(RuntimeException exception, Cache cache, Object key) voidCacheErrorHandler.handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value) Handle the given runtime exception thrown by the cache provider when updating an item with the specifiedkeyandvalue, possibly rethrowing it as a fatal exception.voidLoggingCacheErrorHandler.handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value) voidSimpleCacheErrorHandler.handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value) -
cn.taketoday.cache.support中Cache的使用
修饰符和类型类说明classCommon base class forCacheimplementations that need to adaptnullvalues (and potentially other such special values) before passing them on to the underlying store.classFrameworkCacheadapter implementation on top of a CaffeineCacheinstance.classA no operationCacheimplementation suitable for disabling caching.修饰符和类型方法说明protected CacheCaffeineCacheManager.adaptCaffeineCache(String name, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache) Adapt the given new native Caffeine Cache instance to Framework'sCacheabstraction for the specified cache name.protected CacheCaffeineCacheManager.createCaffeineCache(String name) Build a commonCaffeineCacheinstance for the specified cache name, using the common Caffeine configuration specified on this cache manager.protected CacheAbstractCacheManager.decorateCache(Cache cache) Decorate the given Cache object if necessary.This implementation always returns aCacheimplementation that will not store items.protected CacheAbstractCacheManager.getMissingCache(String name) Return a missing cache with the specifiedname, ornullif such a cache does not exist or could not be created on demand.protected final CacheAbstractCacheManager.lookupCache(String name) Check for a registered cache of the given name.返回变量类型为Cache的类型的cn.taketoday.cache.support中的方法修饰符和类型方法说明protected abstract Collection<? extends Cache>AbstractCacheManager.loadCaches()Load the initial caches for this cache manager.protected Collection<? extends Cache>SimpleCacheManager.loadCaches()参数类型为Cache的cn.taketoday.cache.support中的方法修饰符和类型方法说明protected CacheAbstractCacheManager.decorateCache(Cache cache) Decorate the given Cache object if necessary.类型变量类型为Cache的cn.taketoday.cache.support中的方法参数修饰符和类型方法说明voidSimpleCacheManager.setCaches(Collection<? extends Cache> caches) Specify the collection of Cache instances to use for this CacheManager.