org.springframework.cache

## Interface CacheManager

- All Known Implementing Classes:
    AbstractCacheManager, AbstractTransactionSupportingCacheManager, CompositeCacheManager, ConcurrentMapCacheManager, EhCacheCacheManager, GuavaCacheManager, JCacheCacheManager, NoOpCacheManager, SimpleCacheManager, TransactionAwareCacheManagerProxy

      public interface CacheManager

  Spring's central cache manager SPI. Allows for retrieving named `Cache` regions.
  Since:
    3.1
  Author:
    Costin Leau

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Cache` | `getCache(String name)` Return the cache associated with the given name.
    `Collection<String>` | `getCacheNames()` Return a collection of the cache names known by this manager.

- - ### Method Detail

    - #### getCache

          Cache getCache(String name)

      Return the cache associated with the given name.
      Parameters:
        `name` - the cache identifier (must not be `null`)
      Returns:
        the associated cache, or `null` if none found

    - #### getCacheNames

          Collection<String> getCacheNames()

      Return a collection of the cache names known by this manager.
      Returns:
        the names of all caches known by the cache manager