Package io.quarkus.cache


package io.quarkus.cache
  • Class
    Description
    This 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 with CacheInvalidateAll is invoked, Quarkus will remove all entries from the cache.
     
    When a method argument is annotated with CacheKey, it is identified as a part of a cache key during an invocation of a method annotated with CacheResult or CacheInvalidate.
    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 a Cache and interact with it programmatically e.g. store, retrieve or delete cache values.
    When a method annotated with CacheResult 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 with CacheResult or CacheInvalidate is invoked and when the cache key is composed of several of the method arguments (annotated with CacheKey or not).
    A default cache key is used by the annotations caching API when a no-args method annotated with CacheResult or CacheInvalidate is invoked.