Package | Description |
---|---|
redis.clients.jedis.csc |
This package contains the classes and interfaces related to Server-assisted Client-side Caching.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<CacheKey,java.lang.Long> |
LRUEviction.accessTimes |
protected java.util.Map<CacheKey,CacheEntry> |
DefaultCache.cache |
protected java.util.ArrayDeque<CacheKey> |
LRUEviction.pendingEvictions |
Modifier and Type | Method and Description |
---|---|
CacheKey |
LRUEviction.evictNext() |
CacheKey |
EvictionPolicy.evictNext()
Evict the next element from the cache
This one should provide O(1) complexity
|
CacheKey<T> |
CacheEntry.getCacheKey() |
Modifier and Type | Method and Description |
---|---|
java.util.List<CacheKey> |
AbstractCache.deleteByRedisKey(java.lang.Object key) |
java.util.List<CacheKey> |
Cache.deleteByRedisKey(java.lang.Object key)
Delete an entry by the Redis key from the cache
|
java.util.List<CacheKey> |
AbstractCache.deleteByRedisKeys(java.util.List keys) |
java.util.List<CacheKey> |
Cache.deleteByRedisKeys(java.util.List keys)
Delete entries by the Redis key from the cache
|
java.util.List<CacheKey> |
LRUEviction.evictMany(int n) |
java.util.List<CacheKey> |
EvictionPolicy.evictMany(int n) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DefaultCache.containsKeyInStore(CacheKey cacheKey) |
protected abstract boolean |
AbstractCache.containsKeyInStore(CacheKey cacheKey) |
boolean |
AbstractCache.delete(CacheKey cacheKey) |
boolean |
Cache.delete(CacheKey cacheKey)
Delete an entry by cache key
|
CacheEntry |
AbstractCache.get(CacheKey cacheKey) |
CacheEntry |
Cache.get(CacheKey cacheKey)
Fetches a value from the cache
|
CacheEntry |
DefaultCache.getFromStore(CacheKey key) |
protected abstract CacheEntry |
AbstractCache.getFromStore(CacheKey cacheKey) |
boolean |
AbstractCache.hasCacheKey(CacheKey cacheKey) |
boolean |
Cache.hasCacheKey(CacheKey cacheKey) |
boolean |
AbstractCache.isCacheable(CacheKey cacheKey) |
boolean |
Cache.isCacheable(CacheKey cacheKey) |
CacheEntry |
DefaultCache.putIntoStore(CacheKey key,
CacheEntry entry) |
protected abstract CacheEntry |
AbstractCache.putIntoStore(CacheKey cacheKey,
CacheEntry entry) |
boolean |
DefaultCache.removeFromStore(CacheKey key) |
protected abstract boolean |
AbstractCache.removeFromStore(CacheKey cacheKey) |
boolean |
LRUEviction.reset(CacheKey cacheKey) |
boolean |
EvictionPolicy.reset(CacheKey cacheKey)
Resets the state that the eviction policy maintains about the cache key
|
CacheEntry |
AbstractCache.set(CacheKey cacheKey,
CacheEntry entry) |
CacheEntry |
Cache.set(CacheKey cacheKey,
CacheEntry value)
Puts a value into the cache
|
void |
LRUEviction.touch(CacheKey cacheKey) |
void |
EvictionPolicy.touch(CacheKey cacheKey)
Indicates that a cache key was touched
This one should provide O(1) complexity
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Boolean> |
AbstractCache.delete(java.util.List<CacheKey> cacheKeys) |
java.util.List<java.lang.Boolean> |
Cache.delete(java.util.List<CacheKey> cacheKeys)
Delete entries by cache key from the cache
|
Constructor and Description |
---|
CacheEntry(CacheKey<T> cacheKey,
T value,
CacheConnection connection) |
Constructor and Description |
---|
DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map) |
DefaultCache(int maximumSize,
java.util.Map<CacheKey,CacheEntry> map,
Cacheable cacheable,
EvictionPolicy evictionPolicy) |
Copyright © 2025. All rights reserved.