public class NoOpCacheManager extends 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(String name)
Return the cache associated with the given name.
|
Collection<String> |
getCacheNames()
Return a collection of the caches known by this cache manager.
|
public Cache getCache(String name)
Cache
implementation that will not
store items. Additionally, the request cache will be remembered by the manager for consistency.getCache
in interface CacheManager
name
- cache identifier (must not be null
)null
if none is foundpublic Collection<String> getCacheNames()
getCacheNames
in interface CacheManager
Copyright © 2014. All Rights Reserved.