Annotation Interface CacheInvalidate


@Repeatable(CacheInvalidates.class) @Target(METHOD) @Retention(CLASS) public @interface CacheInvalidate
An annotation that can be applied at the type or method level to indicate that the annotated operation should cause the eviction of the given caches.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Cache<?,?>>
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    Limit the automatic CacheKeyMapper to the given parameter names.
  • Element Details

    • value

      Class<? extends Cache<?,?>> value
      Returns:
      cache name (correlate with name in configuration file)
    • parameters

      String[] parameters
      Limit the automatic CacheKeyMapper to the given parameter names. Mutually exclusive with
      Returns:
      The parameter names that make up the key.
      Default:
      {}
    • invalidateAll

      boolean invalidateAll
      Returns:
      Whether all values within the cache should be evicted or only those for the generated key
      Default:
      false