Interface EntityCacheConfiguration<K,V>

All Known Implementing Classes:
EntityConditionCacheConfiguration, GroovySelectorCacheConfiguration

public interface EntityCacheConfiguration<K,V>
Defines the behaviour of a cache type used by CacheControl
  • Method Summary

    Modifier and Type
    Method
    Description
    findKeysToExpire(com.google.common.cache.Cache<K,V> cache, Entity invalidatedEntity)
    invalidate a cache entry
     
  • Method Details

    • getName

      String getName()
      Returns:
      unique name of the cache type
    • findKeysToExpire

      Collection<K> findKeysToExpire(com.google.common.cache.Cache<K,V> cache, Entity invalidatedEntity)
      invalidate a cache entry
      Returns:
      all keys that should be removed from the cache (because they belong to the given invalidated entity)