Class DefaultCacheInvalidator<K,V>
java.lang.Object
org.craftercms.studio.impl.v2.utils.cache.DefaultCacheInvalidator<K,V>
- Type Parameters:
K- the type for the keysV- the type for the values
- All Implemented Interfaces:
CacheInvalidator<K,V>
Implementation of
CacheInvalidator that invalidates a single item- Since:
- 4.0
- Author:
- joseross
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(com.google.common.cache.Cache<K, V> cache, K key) Performs the cache invalidation based on the given key
-
Constructor Details
-
DefaultCacheInvalidator
public DefaultCacheInvalidator()
-
-
Method Details
-
invalidate
Description copied from interface:CacheInvalidatorPerforms the cache invalidation based on the given key- Specified by:
invalidatein interfaceCacheInvalidator<K,V> - Parameters:
cache- the cache instancekey- the key to invalidate
-