Package io.micronaut.cache
Interface DynamicCacheManager<C>
-
- Type Parameters:
C- The native cache implementation
public interface DynamicCacheManager<C>A contract for a cache manager that does not have pre-defined caches.
- Since:
- 1.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyncCache<C>getCache(java.lang.String name)Retrieve a cache for the given name.
-
-
-
Method Detail
-
getCache
@NonNull SyncCache<C> getCache(java.lang.String name)
Retrieve a cache for the given name. If the cache does not previously exist, a new one will be created. The cache instance should not be cached internally because the cache manager will maintain the instance for future requests.- Parameters:
name- The name of the cache- Returns:
- The
SyncCacheinstance
-
-