URI format and Options - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB
cache://cacheName[?options]

You can append query options to the URI in the following format, ?option=value&option=value&..., where option can be:

Name

Default Value

Description

maxElementsInMemory

1000

The numer of elements that may be stored in the defined cache

memoryStore-EvictionPolicy

MemoryStore-Eviction-Policy.LFU

The number of elements that may be stored in the defined cache. Options include

  • MemoryStoreEvictionPolicy.LFU - Least frequently used

  • MemoryStoreEvictionPolicy.LRU - Least recently used

  • MemoryStoreEvictionPolicy.FIFO - first in first out, the oldest element by creation time

overflowToDisk

true

Specifies whether cache may overflow to disk

eternal

false

Sets whether elements are eternal. If eternal, timeouts are ignored and the element never expires.

timeToLiveSeconds

300

The maximum time between creation time and when an element expires. Is used only if the element is not eternal.

timeToIdleSeconds

300

The maximum amount of time between accesses before an element expires

diskPersistent

false

Whether the disk store persists between restarts of the Virtual Machine.

diskExpiryThread-IntervalSeconds

120

The number of seconds between runs of the disk expiry thread.

cacheManagerFactory

null

If you want to use a custom factory which instantiates and creates the EHCache net.sf.ehcache.CacheManager. Use type of abstract org.apache.camel. component.cache. CacheManagerFactory.

eventListenerRegistrynullSets a list of EHCache net.sf.ehcache.event.CacheEventListener for all new caches - no need to define it per cache in EHCache xml config anymore. Use type of org.apache.camel. component.cache. CacheEventListenerRegistry.
cacheLoaderRegistrynullSets a list of org.apache.camel. component.cache. CacheLoaderWrapper that extends EHCache net.sf.ehcache.loader.CacheLoader for all new caches - no need to define it per cache in EHCache xml config anymore. Use type of org.apache.camel. component.cache. CacheLoaderRegistry
keynullTo configure using a cache key by default. If a key is provided in the message header, then the key from the header takes precedence.
operationnullTo configure using an cache operation by default. If an operation in the message header, then the operation from the header takes precedence.