All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.cache.CacheInvalidateAll Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.cache;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;
import javax.interceptor.InterceptorBinding;

import io.quarkus.cache.CacheInvalidateAll.List;

/**
 * When a method annotated with {@link CacheInvalidateAll} is invoked, Quarkus will remove all entries from the cache.
 * 

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

* The underlying caching provider can be chosen and configured in the Quarkus {@link application.properties} file. */ @InterceptorBinding @Target({ ElementType.TYPE, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Repeatable(List.class) public @interface CacheInvalidateAll { /** * The name of the cache. */ @Nonbinding String cacheName(); @Target({ ElementType.TYPE, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @interface List { CacheInvalidateAll[] value(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy