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
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -771,6 +771,21 @@ The `setExpireAfterAccess`, `setExpireAfterWrite` and `setMaximumSize` methods f
771
771
This extension uses https://github.com/ben-manes/caffeine[Caffeine] as its underlying caching provider.
772
772
Caffeine is a high performance, near optimal caching library.
773
773
774
+
== Multiple Backends Simultaneously
775
+
776
+
This extension can be configured to use multiple backends simultaneously, allowing different caches to leverage either in-memory providers (like Caffeine) or distributed providers (like Redis) as needed, for example:
777
+
778
+
[source,properties]
779
+
----
780
+
# default cache backend
781
+
quarkus.cache.type=caffeine
782
+
783
+
# change the cache backend for "weather-cache" to Redis.
784
+
quarkus.cache.weather-cache.type=redis
785
+
----
786
+
787
+
NOTE: The syntax for the property name is `quarkus.cache."cache-name".type`. If no explicit backend is defined for a cache, the default backend is used. For details on configuring a specific backend, refer to its guide.
788
+
774
789
=== Caffeine configuration properties
775
790
776
791
Each of the Caffeine caches backing up the Quarkus application data caching extension can be configured using the following
0 commit comments