public interface CacheListener
| Modifier and Type | Method and Description |
|---|---|
<T> CacheEntry<T> |
wouldAddToCache(Object k,
CacheEntry<T> toCache,
boolean updated)
ability to alter cached entries or avoid caching overall
|
<T> boolean |
wouldClearCache(Class<T> affectedEntityType) |
<T> boolean |
wouldRemoveEntryFromCache(Object key,
CacheEntry<T> toRemove,
boolean expired) |
<T> CacheEntry<T> wouldAddToCache(Object k, CacheEntry<T> toCache, boolean updated)
T - - the typetoCache - - datastructure containing cache key and result<T> boolean wouldClearCache(Class<T> affectedEntityType)
<T> boolean wouldRemoveEntryFromCache(Object key, CacheEntry<T> toRemove, boolean expired)
Copyright © 2021. All rights reserved.