第 90 章 Ehcache 组件

作为 Camel 2.18 版提供

ehcache 组件允许您使用 Ehcache 3 作为缓存实施来执行缓存操作。

此组件支持基于制作者和事件的消费者端点。

缓存使用者是基于事件的消费者,可用于侦听和响应特定的缓存活动。 

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

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

90.1. URI 格式

ehcache://cacheName[?options]

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