Interface CacheManager<C>

  • Type Parameters:
    C - The native cache implementation
    All Known Implementing Classes:
    DefaultCacheManager, JCacheManager

    public interface CacheManager<C>

    Simple CacheManager interface for managing caches.

    Since:
    1.0
    • Method Detail

      • getCacheNames

        @NonNull
        java.util.Set<java.lang.String> getCacheNames()
        Returns:
        The names of the active caches
      • getCache

        @NonNull
        SyncCache<C> getCache​(java.lang.String name)
        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