Package io.micronaut.cache
Interface CacheManager<C>
- Type Parameters:
C
- The native cache implementation
- All Known Implementing Classes:
DefaultCacheManager
,JCacheManager
,NoOpCacheManager
public interface CacheManager<C>
Simple CacheManager interface for managing caches.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
-
Method Details
-
getCacheNames
- Returns:
- The names of the active caches
-
getCache
Retrieve a cache for the given name.- Parameters:
name
- The name of the cache- Returns:
- The
SyncCache
instance - Throws:
io.micronaut.context.exceptions.ConfigurationException
- If no cache is found for the given name
-