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 Details

    • getCacheNames

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

      @NonNull @NonNull SyncCache<C> getCache(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