@Replaces(value=io.micronaut.cache.DefaultCacheManager.class)
@Requires(property="noop-cache.enabled",
value="true")
@Primary
public class NoOpCacheManager
extends java.lang.Object
implements io.micronaut.cache.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 |
---|---|
io.micronaut.cache.SyncCache<java.lang.Object> |
getCache(java.lang.String name) |
java.util.Set<java.lang.String> |
getCacheNames() |
@Nonnull public java.util.Set<java.lang.String> getCacheNames()
getCacheNames
in interface io.micronaut.cache.CacheManager<java.lang.Object>
@Nonnull public io.micronaut.cache.SyncCache<java.lang.Object> getCache(java.lang.String name)
getCache
in interface io.micronaut.cache.CacheManager<java.lang.Object>