org.springframework.cache

Interface CacheManager

    • Method Summary

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

      • getCache

        @Nullable
        Cache getCache(java.lang.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

        java.util.Collection<java.lang.String> getCacheNames()
        Return a collection of the cache names known by this manager.
        Returns:
        the names of all caches known by the cache manager