第 56 章 Caffeine Cache 组件

可作为 Camel 版本 2.20 可用

caffeine-cache 组件可让您使用 Caffeine 的简单缓存来执行缓存操作。

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-caffeine</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

56.1. URI 格式

caffeine-cache://cacheName[?options]

您可以以以下格式在 URI 中附加查询选项 ?option  =value&option=#beanRef&…​