@Component(value="core_CacheOperations")
public class CacheOperations
extends java.lang.Object
CacheOperations
facade uses specific API of cache implementations.Constructor and Description |
---|
CacheOperations() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
forEach(org.springframework.cache.Cache cache,
java.util.function.BiConsumer<K,V> consumer) |
<K> java.util.Set<K> |
getKeys(org.springframework.cache.Cache cache) |
<V> java.util.Collection<V> |
getValues(org.springframework.cache.Cache cache) |
boolean |
isIterableCache(org.springframework.cache.Cache cache)
Iterations over cache entries are supported for JCache and default
ConcurrentMapCache . |
public boolean isIterableCache(org.springframework.cache.Cache cache)
ConcurrentMapCache
.cache
- public <K,V> void forEach(org.springframework.cache.Cache cache, java.util.function.BiConsumer<K,V> consumer)
public <K> java.util.Set<K> getKeys(org.springframework.cache.Cache cache)
cache
- - cachepublic <V> java.util.Collection<V> getValues(org.springframework.cache.Cache cache)
cache
- - cache