Package io.micronaut.cache
Interface DynamicCacheManager<C>
- Type Parameters:
C
- The native cache implementation
- All Known Implementing Classes:
DefaultDynamicCacheManager
,HazelcastCacheManager
,InfinispanCacheManager
public interface DynamicCacheManager<C>
A contract for a cache manager that does not have pre-defined caches.
- Since:
- 1.3.0
- Author:
- James Kleeh
-
Method Summary
-
Method Details
-
getCache
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
SyncCache
instance
-