Jens Kleine-Herzbruch created CAMEL-14467:
---------------------------------------------
Summary: Dynamically bypass the cache for lookups
Key: CAMEL-14467
URL: https://issues.apache.org/jira/browse/CAMEL-14467
Project: Camel
Issue Type: New Feature
Components: camel-jcache
Affects Versions: 3.0.1
Reporter: Jens Kleine-Herzbruch
Attachments: bypass.diff
Currently, the JCachePolicy can only enabled or disable the cache completely at
startup.
It would be useful to be able to enable or disable caching per request, though.
This change adds a new property "bypassExpression". If this expression is set
and returns true, the cache is ignored for lookup, the underlying route is
executed as normal, and the returned value is inserted in the cache for future
lookups.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)