57.3. Spring Boot Auto-Configuration
组件支持 17 个选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.caffeine-cache.configuration.action | 配置默认缓存操作。如果在消息标头中设置了操作,则标题中的操作将具有优先权。 | 字符串 | |
| camel.component.caffeine-cache.configuration.cache | 配置要使用的已实例化缓存 | Cache | |
| camel.component.caffeine-cache.configuration.cache-loader | 在 LoadCache 使用时配置 CacheLoader | CacheLoader | |
| camel.component.caffeine-cache.configuration.create-cache-if-not-exist | 如果缓存存在或无法预先配置,则配置是否需要创建缓存。 | true | 布尔值 |
| camel.component.caffeine-cache.configuration.eviction-type | 为此缓存设置驱除类型 | EvictionType | |
| camel.component.caffeine-cache.configuration.expire-after-access-time | 在基于时间的驱除(以秒为单位)时设置过期时间 | 300 | 整数 |
| camel.component.caffeine-cache.configuration.expire-after-write-time | 在基于时间的 Eviction 时设置过期后访问写(以秒为单位) | 300 | 整数 |
| camel.component.caffeine-cache.configuration.initial-capacity | 为缓存设置初始容量 | 10000 | 整数 |
| camel.component.caffeine-cache.configuration.key | 配置默认操作密钥。如果在消息标头中设置了键,则标题中的键具有优先权。 | 对象 | |
| camel.component.caffeine-cache.configuration.key-type | 缓存密钥类型,默认 java.lang.Object | java.lang.Object | 字符串 |
| camel.component.caffeine-cache.configuration.maximum-size | 为缓存设置最大大小 | 10000 | 整数 |
| camel.component.caffeine-cache.configuration.removal-listener | 为缓存设置特定的删除 Listener | RemovalListener | |
| camel.component.caffeine-cache.configuration.stats-counter | 为缓存统计设置特定的 Stats Counter | StatsCounter | |
| camel.component.caffeine-cache.configuration.stats-enabled | 在缓存上启用统计信息 | false | 布尔值 |
| camel.component.caffeine-cache.configuration.value-type | 缓存值类型,默认为 java.lang.Object | java.lang.Object | 字符串 |
| camel.component.caffeine-cache.enabled | 是否启用 caffeine-cache 组件的自动配置。这默认是启用的。 | 布尔值 | |
| camel.component.caffeine-cache.resolve-property-placeholders | 组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。 | true | 布尔值 |