类 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.

    从以下版本开始:
    3.1
    作者:
    Costin Leau, Stephane Nicoll
    另请参阅:
    NoOpCache
    • 方法详细资料

      • getCache

        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