public interface Cache
Modifier and Type | Method and Description |
---|---|
boolean |
compatibilityMode() |
boolean |
delete(CacheKey cacheKey)
Delete an entry by cache key
|
java.util.List<java.lang.Boolean> |
delete(java.util.List<CacheKey> cacheKeys)
Delete entries by cache key from the cache
|
java.util.List<CacheKey> |
deleteByRedisKey(java.lang.Object key)
Delete an entry by the Redis key from the cache
|
java.util.List<CacheKey> |
deleteByRedisKeys(java.util.List keys)
Delete entries by the Redis key from the cache
|
int |
flush()
Flushes the entire cache
|
CacheEntry |
get(CacheKey cacheKey)
Fetches a value from the cache
|
CacheStats |
getAndResetStats() |
java.util.Collection<CacheEntry> |
getCacheEntries() |
EvictionPolicy |
getEvictionPolicy() |
int |
getMaxSize() |
int |
getSize() |
CacheStats |
getStats() |
boolean |
hasCacheKey(CacheKey cacheKey) |
boolean |
isCacheable(CacheKey cacheKey) |
CacheEntry |
set(CacheKey cacheKey,
CacheEntry value)
Puts a value into the cache
|
int getMaxSize()
int getSize()
java.util.Collection<CacheEntry> getCacheEntries()
CacheEntry get(CacheKey cacheKey)
cacheKey
- The key within the cacheCacheEntry set(CacheKey cacheKey, CacheEntry value)
cacheKey
- The key by which the value can be accessed within the cachevalue
- The value to be put into the cacheboolean delete(CacheKey cacheKey)
cacheKey
- The cache key of the entry in the cachejava.util.List<java.lang.Boolean> delete(java.util.List<CacheKey> cacheKeys)
cacheKeys
- The cache keys of the entries that should be deletedjava.util.List<CacheKey> deleteByRedisKey(java.lang.Object key)
key
- The Redis key as binaryjava.util.List<CacheKey> deleteByRedisKeys(java.util.List keys)
keys
- The Redis keys as binariesint flush()
boolean isCacheable(CacheKey cacheKey)
cacheKey
- The key of the cache entryboolean hasCacheKey(CacheKey cacheKey)
cacheKey
- The key of the cache entryEvictionPolicy getEvictionPolicy()
CacheStats getStats()
CacheStats getAndResetStats()
boolean compatibilityMode()
Copyright © 2025. All rights reserved.