类 NoOpCacheManager

java.lang.Object
cn.taketoday.cache.support.NoOpCacheManager
所有已实现的接口:
CacheManager

public class NoOpCacheManager extends Object implements 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
  • 构造器详细资料

    • NoOpCacheManager

      public NoOpCacheManager()
  • 方法详细资料

    • getCache

      @Nullable public Cache getCache(String name)
      This implementation always returns a Cache implementation 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 be null)
      返回:
      the associated cache, or null if such a cache does not exist or could be not created
    • getCacheNames

      public Collection<String> getCacheNames()
      This implementation returns the name of the caches previously requested.
      指定者:
      getCacheNames 在接口中 CacheManager
      返回:
      the names of all caches known by the cache manager