public class

CompositeCacheManager

extends Object
implements CacheManager
java.lang.Object
   ↳ org.springframework.cache.support.CompositeCacheManager

Class Overview

Composite CacheManager implementation that iterates over a given collection of CacheManager instances.

Summary

Public Constructors
CompositeCacheManager()
Public Methods
<K, V> Cache<K, V> getCache(String name)
Returns the cache associated with the given name.
Collection<String> getCacheNames()
Returns a collection of the caches known by this cache manager.
void setCacheManagers(CacheManager[] cacheManagers)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.cache.CacheManager

Public Constructors

public CompositeCacheManager ()

Public Methods

public Cache<K, V> getCache (String name)

Returns the cache associated with the given name.

Parameters
name cache identifier - cannot be null
Returns
  • associated cache or null if none is found

public Collection<String> getCacheNames ()

Returns a collection of the caches known by this cache manager.

Returns
  • names of caches known by the cache manager.

public void setCacheManagers (CacheManager[] cacheManagers)