Package io.quarkus.cache
package io.quarkus.cache
-
ClassDescriptionThis exception is thrown when a cache value computation fails because of an exception.When a method annotated with
CacheInvalidate
is invoked, Quarkus will compute a cache key and use it to try to remove an existing entry from the cache.When a method annotated withCacheInvalidateAll
is invoked, Quarkus will remove all entries from the cache.When a method argument is annotated withCacheKey
, it is identified as a part of a cache key during an invocation of a method annotated withCacheResult
orCacheInvalidate
.Implement this interface to generate a cache key based on the cached method, its parameters or any data available from within the generator.Use this annotation on a field, a constructor parameter or a method parameter to inject aCache
and interact with it programmatically e.g.When a method annotated withCacheResult
is invoked, Quarkus will compute a cache key and use it to check in the cache whether the method has been already invoked.A composite cache key is used by the annotations caching API when a method annotated withCacheResult
orCacheInvalidate
is invoked and when the cache key is composed of several of the method arguments (annotated withCacheKey
or not).A default cache key is used by the annotations caching API when a no-args method annotated withCacheResult
orCacheInvalidate
is invoked.