Package de.caluga.morphium.cache
Interface CacheListener
public interface CacheListener
Created with IntelliJ IDEA.
User: stephan
Date: 15.04.14
Time: 09:55
To change this template use File | Settings | File Templates.
-
Method Summary
Modifier and TypeMethodDescription<T> CacheEntry<T>wouldAddToCache(Object k, CacheEntry<T> toCache, boolean updated) ability to alter cached entries or avoid caching overall<T> booleanwouldClearCache(Class<T> affectedEntityType) <T> booleanwouldRemoveEntryFromCache(Object key, CacheEntry<T> toRemove, boolean expired)
-
Method Details
-
wouldAddToCache
ability to alter cached entries or avoid caching overall- Type Parameters:
T- - the type- Parameters:
toCache- - datastructure containing cache key and result- Returns:
- false, if not to cache
-
wouldClearCache
-
wouldRemoveEntryFromCache
-