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
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final ConcurrentMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Cache | getCache(String
the cache identifier (must not be name)null)Implements org. Cache implementation that will not store items.
|
| public Collection | getCacheNames()
Implements org. |
| cacheNames | back to summary |
|---|---|
| private final Set<String> cacheNames | |
| caches | back to summary |
|---|---|
| private final ConcurrentMap<String, Cache> caches | |
| NoOpCacheManager | back to summary |
|---|---|
| public NoOpCacheManager() | |
| getCache | back to summary |
|---|---|
| public Cache getCache(String name) Implements org. This implementation always returns a
| |
| getCacheNames | back to summary |
|---|---|
| public Collection Implements org. This implementation returns the name of the caches previously requested.
| |