Interface CacheInvalidator<K,V>
- Type Parameters:
K- the type for the keysV- the type for the values
- All Known Implementing Classes:
ConditionalCacheInvalidator,DefaultCacheInvalidator,PatternCacheInvalidator,SuffixCacheInvalidator
public interface CacheInvalidator<K,V>
Defines the operations for cache invalidation
- Since:
- 4.0
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(com.google.common.cache.Cache<K, V> cache, K key) Performs the cache invalidation based on the given key
-
Method Details
-
invalidate
Performs the cache invalidation based on the given key- Parameters:
cache- the cache instancekey- the key to invalidate
-