public class NoOpCacheManager extends java.lang.Object implements CacheManager
CacheManager implementation suitable
for disabling caching, typically used for backing cache declarations
without an actual backing store.
Will simply accept any items into the cache not actually storing them.
CompositeCacheManager| Constructor and Description |
|---|
NoOpCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
Cache |
getCache(java.lang.String name)
This implementation always returns a
Cache implementation that will not store items. |
java.util.Collection<java.lang.String> |
getCacheNames()
This implementation returns the name of the caches previously requested.
|
public Cache getCache(java.lang.String name)
Cache implementation that will not store items.
Additionally, the request cache will be remembered by the manager for consistency.getCache in interface CacheManagername - the cache identifier (must not be null)null if none foundpublic java.util.Collection<java.lang.String> getCacheNames()
getCacheNames in interface CacheManager