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.
NoOpCache
Constructor and Description |
---|
NoOpCacheManager() |
Modifier and Type | Method and Description |
---|---|
Cache |
getCache(String name)
This implementation always returns a
Cache implementation that will not store items. |
Collection<String> |
getCacheNames()
This implementation returns the name of the caches previously requested.
|
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
- the cache identifier (must not be null
)null
if such a cache
does not exist or could be not createdpublic Collection<String> getCacheNames()
getCacheNames
in interface CacheManager