Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14467

camel-jcache - Dynamically bypass the cache for lookups

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 4.0.0
    • camel-jcache
    • None
    • Patch Available
    • Unknown
    • Patch

    Description

      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.

      Attachments

        1. bypass.diff
          9 kB
          Jens Kleine-Herzbruch

        Activity

          People

            davsclaus Claus Ibsen
            jensgr@gmx.net Jens Kleine-Herzbruch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: