Package io.quarkus.cache


package io.quarkus.cache
  • Class
    Description
    Use this interface to interact with a cache programmatically e.g. store, retrieve or delete cache values.
    This qualifier may be applied to injection points to instruct the container to inject a generated wrapper bean that delegates method invocations to the original bean but the return values of selected business methods are cached.
    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 interface to retrieve all existing Cache names and interact with any cache programmatically e.g. store, retrieve or delete cache values.
     
     
     
    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.