@Replaces(value=DefaultCacheManager.class) @Requires(property="noop-cache.enabled", value="true") @Primary public class NoOpCacheManager extends java.lang.Object implements CacheManager<java.lang.Object>
CacheManager
implementation suitable for disabling caching.
Will simply accept any items into the cache without actually storing them.
Constructor and Description |
---|
NoOpCacheManager()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SyncCache<java.lang.Object> |
getCache(java.lang.String name)
Retrieve a cache for the given name.
|
java.util.Set<java.lang.String> |
getCacheNames() |
@Nonnull public java.util.Set<java.lang.String> getCacheNames()
getCacheNames
in interface CacheManager<java.lang.Object>
@Nonnull public SyncCache<java.lang.Object> getCache(java.lang.String name)
CacheManager
getCache
in interface CacheManager<java.lang.Object>
name
- The name of the cacheSyncCache
instance