Interface CacheManager

All Superinterfaces:
AutoCloseable, Closeable

public interface CacheManager extends Closeable
The CacheManager holds references to Cache and manages their creation. This class is a singleton which can be retrieved via injection.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears (aka invalidates) all caches.
    <K, V> Cache<K,V>
    Returns the cache with the specified types and name.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getCache

      <K, V> Cache<K,V> getCache(String name)
      Returns the cache with the specified types and name. If the cache does not exist, a new cache is created.
      Type Parameters:
      K - - The type of the keys for the cache
      V - - The type of cache elements
      Parameters:
      name - - The name of the cache
      Returns:
      the cache with the specified types and name
    • clearAllCaches

      void clearAllCaches()
      Clears (aka invalidates) all caches.
      Since:
      2.48.0