You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/cache.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,7 @@ Loads a method result from the cache without executing the method body whenever
282
282
283
283
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.
284
284
If the method has one or more arguments, the key computation is done from all the method arguments if none of them is annotated with `@CacheKey`, or all the arguments annotated with `@CacheKey` otherwise.
285
+
Each non-primitive method argument that is part of the key must implement `equals()` and `hashCode()` correctly for the cache to work as expected.
285
286
This annotation can also be used on a method with no arguments, a default key derived from the cache name is generated in that case.
286
287
If a value is found in the cache, it is returned and the annotated method is never actually executed.
287
288
If no value is found, the annotated method is invoked and the returned value is stored in the cache using the computed or generated key.
@@ -328,7 +329,7 @@ Caffeine is a high performance, near optimal caching library.
328
329
=== Caffeine configuration properties
329
330
330
331
Each of the Caffeine caches backing up the Quarkus application data caching extension can be configured using the following
331
-
properties in the `application.properties` file.
332
+
properties in the `application.properties` file. By default caches do not perform any type of eviction if not configured.
332
333
333
334
[TIP]
334
335
====
@@ -485,4 +486,3 @@ public class CachedService {
485
486
----
486
487
<1> This method can be used to force a refresh of the cache entry corresponding to the given key.
487
488
<2> This method will invalidate all entries from the `foo` and `bar` caches with a single call.
0 commit comments