@Replaces(value=DefaultCacheManager.class) @Requires(property="noop-cache.enabled", value="true") @Primary public class NoOpCacheManager extends Object implements CacheManager<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<Object> |
getCache(String name)
Retrieve a cache for the given name.
|
Set<String> |
getCacheNames() |
@NonNull public Set<String> getCacheNames()
getCacheNames in interface CacheManager<Object>@NonNull public SyncCache<Object> getCache(String name)
CacheManagergetCache in interface CacheManager<Object>name - The name of the cacheSyncCache instance