类 NoOpCacheManager
java.lang.Object
cn.taketoday.cache.support.NoOpCacheManager
- 所有已实现的接口:
CacheManager
A basic, no operation
CacheManager implementation suitable
for disabling caching, typically used for backing cache declarations
without an actual backing store.
Will simply accept any items into the cache not actually storing them.
- 从以下版本开始:
- 4.0 2022/1/26 14:18
- 作者:
- Harry Yang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明This implementation always returns aCacheimplementation that will not store items.This implementation returns the name of the caches previously requested.
-
构造器详细资料
-
NoOpCacheManager
public NoOpCacheManager()
-
-
方法详细资料
-
getCache
This implementation always returns aCacheimplementation that will not store items. Additionally, the request cache will be remembered by the manager for consistency.- 指定者:
getCache在接口中CacheManager- 参数:
name- the cache identifier (must not benull)- 返回:
- the associated cache, or
nullif such a cache does not exist or could be not created
-
getCacheNames
This implementation returns the name of the caches previously requested.- 指定者:
getCacheNames在接口中CacheManager- 返回:
- the names of all caches known by the cache manager
-