This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 6f49150d7f82 CAMEL-22981: Convert Cache EIP example to Java/XML/YAML 
tabs (#26177)
6f49150d7f82 is described below

commit 6f49150d7f8230a67550b15556481fdb9faba176
Author: Urmila Unni <[email protected]>
AuthorDate: Tue Sep 8 14:20:34 2026 +0530

    CAMEL-22981: Convert Cache EIP example to Java/XML/YAML tabs (#26177)
    
    * CAMEL-22981: Convert Cache EIP example to Java/XML/YAML tabs
    
    * Regen
    
    ---------
    
    Co-authored-by: github-actions[bot] 
<github-actions[bot]@users.noreply.github.com>
---
 .../org/apache/camel/catalog/docs/cache-eip.adoc   | 41 ++++++++++++----------
 .../main/docs/modules/eips/pages/cache-eip.adoc    | 41 ++++++++++++----------
 2 files changed, 44 insertions(+), 38 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cache-eip.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cache-eip.adoc
index e3f4269ffc04..b9cca4913962 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cache-eip.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cache-eip.adoc
@@ -58,8 +58,6 @@ Cache errors are handled gracefully:
 
 == Examples
 
-=== Java DSL
-
 Cache with an auto-created in-memory store (zero config):
 
 [source,java]
@@ -74,31 +72,23 @@ from("direct:start")
 
 Cache with TTL and an explicit `KeyValueRepository`:
 
+[tabs]
+====
+Java::
++
 [source,java]
 ----
 from("direct:start")
     .cache(simple("${header.productId}"))
         .ttl("10m")
-        .keyValueRepository("myRedisKvr")
-        .to("http://product-service/api/product";)
-    .end()
-    .to("direct:continue");
-----
-
-Expression clause form:
-
-[source,java]
-----
-from("direct:start")
-    .cache().simple("${header.productId}")
-        .ttl("5m")
+        .keyValueRepository("myCache")
         .to("http://product-service/api/product";)
     .end()
     .to("direct:continue");
 ----
 
-=== XML DSL
-
+XML::
++
 [source,xml]
 ----
 <route>
@@ -111,8 +101,8 @@ from("direct:start")
 </route>
 ----
 
-=== YAML DSL
-
+YAML::
++
 [source,yaml]
 ----
 - from:
@@ -126,6 +116,19 @@ from("direct:start")
             - to: "http://product-service/api/product";
       - to: "direct:continue"
 ----
+====
+
+Expression clause form:
+
+[source,java]
+----
+from("direct:start")
+    .cache().simple("${header.productId}")
+        .ttl("5m")
+        .to("http://product-service/api/product";)
+    .end()
+    .to("direct:continue");
+----
 
 == Using with KeyValueRepository
 
diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/cache-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/cache-eip.adoc
index e3f4269ffc04..b9cca4913962 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/cache-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/cache-eip.adoc
@@ -58,8 +58,6 @@ Cache errors are handled gracefully:
 
 == Examples
 
-=== Java DSL
-
 Cache with an auto-created in-memory store (zero config):
 
 [source,java]
@@ -74,31 +72,23 @@ from("direct:start")
 
 Cache with TTL and an explicit `KeyValueRepository`:
 
+[tabs]
+====
+Java::
++
 [source,java]
 ----
 from("direct:start")
     .cache(simple("${header.productId}"))
         .ttl("10m")
-        .keyValueRepository("myRedisKvr")
-        .to("http://product-service/api/product";)
-    .end()
-    .to("direct:continue");
-----
-
-Expression clause form:
-
-[source,java]
-----
-from("direct:start")
-    .cache().simple("${header.productId}")
-        .ttl("5m")
+        .keyValueRepository("myCache")
         .to("http://product-service/api/product";)
     .end()
     .to("direct:continue");
 ----
 
-=== XML DSL
-
+XML::
++
 [source,xml]
 ----
 <route>
@@ -111,8 +101,8 @@ from("direct:start")
 </route>
 ----
 
-=== YAML DSL
-
+YAML::
++
 [source,yaml]
 ----
 - from:
@@ -126,6 +116,19 @@ from("direct:start")
             - to: "http://product-service/api/product";
       - to: "direct:continue"
 ----
+====
+
+Expression clause form:
+
+[source,java]
+----
+from("direct:start")
+    .cache().simple("${header.productId}")
+        .ttl("5m")
+        .to("http://product-service/api/product";)
+    .end()
+    .to("direct:continue");
+----
 
 == Using with KeyValueRepository
 

Reply via email to