Annotation Interface CacheInvalidateAll


@InterceptorBinding @Target({TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(List.class) public @interface CacheInvalidateAll
When a method annotated with CacheInvalidateAll is invoked, Quarkus will remove all entries from the cache.

Cache invalidation is performed after the annotated method completes successfully. If the method throws an exception, the cache will not be invalidated.

This annotation can be combined with multiple other caching annotations on a single method. Caching operations will always be executed in the same order: CacheInvalidateAll first, then CacheInvalidate and finally CacheResult.

The underlying caching provider can be chosen and configured in the Quarkus

invalid reference
application.properties
file.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the cache.
  • Element Details

    • cacheName

      String cacheName
      The name of the cache.