Class DefaultCacheInvalidator<K,V>

java.lang.Object
org.craftercms.studio.impl.v2.utils.cache.DefaultCacheInvalidator<K,V>
Type Parameters:
K - the type for the keys
V - the type for the values
All Implemented Interfaces:
CacheInvalidator<K,V>

public class DefaultCacheInvalidator<K,V> extends Object implements CacheInvalidator<K,V>
Implementation of CacheInvalidator that invalidates a single item
Since:
4.0
Author:
joseross
  • Constructor Details

    • DefaultCacheInvalidator

      public DefaultCacheInvalidator()
  • Method Details

    • invalidate

      public void invalidate(com.google.common.cache.Cache<K,V> cache, K key)
      Description copied from interface: CacheInvalidator
      Performs the cache invalidation based on the given key
      Specified by:
      invalidate in interface CacheInvalidator<K,V>
      Parameters:
      cache - the cache instance
      key - the key to invalidate