Package io.quarkus.cache
-
Interface Summary Interface Description Cache Use this interface to interact with a cache programmatically e.g.CacheKeyGenerator Implement this interface to generate a cache key based on the cached method, its parameters or any data available from within the generator.CacheManager Use this interface to retrieve all existingCache
names and interact with any cache programmatically e.g.CaffeineCache -
Class Summary Class Description CompositeCacheKey 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).DefaultCacheKey A default cache key is used by the annotations caching API when a no-args method annotated withCacheResult
orCacheInvalidate
is invoked. -
Exception Summary Exception Description CacheException This exception is thrown when a cache value computation fails because of an exception. -
Annotation Types Summary Annotation Type Description CacheInvalidate When a method annotated withCacheInvalidate
is invoked, Quarkus will compute a cache key and use it to try to remove an existing entry from the cache.CacheInvalidate.List CacheInvalidateAll When a method annotated withCacheInvalidateAll
is invoked, Quarkus will remove all entries from the cache.CacheInvalidateAll.List CacheKey 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
.CacheName Use this annotation on a field, a constructor parameter or a method parameter to inject aCache
and interact with it programmatically e.g.CacheResult 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.