public class DefaultCache extends AbstractCache
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<CacheKey,CacheEntry> |
cache |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCache(int maximumSize) |
protected |
DefaultCache(int maximumSize,
Cacheable cacheable) |
protected |
DefaultCache(int maximumSize,
Cacheable cacheable,
EvictionPolicy evictionPolicy) |
protected |
DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map) |
protected |
DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map,
Cacheable cacheable,
EvictionPolicy evictionPolicy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearStore() |
protected boolean |
containsKeyInStore(CacheKey cacheKey) |
java.util.Collection<CacheEntry> |
getCacheEntries() |
EvictionPolicy |
getEvictionPolicy() |
CacheEntry |
getFromStore(CacheKey key) |
int |
getSize() |
CacheEntry |
putIntoStore(CacheKey key,
CacheEntry entry) |
boolean |
removeFromStore(CacheKey key) |
compatibilityMode, delete, delete, deleteByRedisKey, deleteByRedisKeys, flush, get, getAndResetStats, getMaxSize, getStats, hasCacheKey, isCacheable, setprotected final java.util.Map<CacheKey,CacheEntry> cache
protected DefaultCache(int maximumSize)
protected DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map)
protected DefaultCache(int maximumSize,
Cacheable cacheable)
protected DefaultCache(int maximumSize,
Cacheable cacheable,
EvictionPolicy evictionPolicy)
protected DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map,
Cacheable cacheable,
EvictionPolicy evictionPolicy)
public int getSize()
getSize in interface CachegetSize in class AbstractCachepublic java.util.Collection<CacheEntry> getCacheEntries()
getCacheEntries in interface CachegetCacheEntries in class AbstractCachepublic EvictionPolicy getEvictionPolicy()
getEvictionPolicy in interface CachegetEvictionPolicy in class AbstractCachepublic CacheEntry getFromStore(CacheKey key)
getFromStore in class AbstractCachepublic CacheEntry putIntoStore(CacheKey key, CacheEntry entry)
putIntoStore in class AbstractCachepublic boolean removeFromStore(CacheKey key)
removeFromStore in class AbstractCacheprotected final void clearStore()
clearStore in class AbstractCacheprotected boolean containsKeyInStore(CacheKey cacheKey)
containsKeyInStore in class AbstractCacheCopyright © 2025. All rights reserved.