Camel
  1. Camel
  2. CAMEL-5226

camel-cache - Ability to set an Element's ttl and perhaps other properties when performing an add would be nice.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: camel-cache
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      Currently it's possible to set a TTL at the cache level but there is no way to override this value at the Element.

      I propose adding some headers for controlling this behavior. Something along the lines of:

      CamelCacheTimeToLive (seconds)
      CamelCacheTimeToIdle (seconds)
      CamelCacheEternal (boolean)

      These values would apply to the ADD and UPDATE operations.

      I'll look at creating a patch.

      1. 5226.patch
        40 kB
        Mark Ford

        Activity

        Mark Ford created issue -
        Hide
        Claus Ibsen added a comment -

        Any update on a patch?

        Show
        Claus Ibsen added a comment - Any update on a patch?
        Claus Ibsen made changes -
        Field Original Value New Value
        Summary Ability to set an Element's ttl and perhaps other properties when performing an add would be nice. camel-cache - Ability to set an Element's ttl and perhaps other properties when performing an add would be nice.
        Issue Type Improvement [ 4 ] New Feature [ 2 ]
        Fix Version/s Future [ 12315692 ]
        Hide
        Mark Ford added a comment -

        I've made the changes to the CacheProducer and included unit tests for each of the new properties.

        Show
        Mark Ford added a comment - I've made the changes to the CacheProducer and included unit tests for each of the new properties.
        Mark Ford made changes -
        Attachment 5226.patch [ 12535528 ]
        Claus Ibsen <davsclaus@apache.org> committed 2c7acb73091b2ab580e95a693624a09b6ece13f5 (1 file)
        Reviews: none

        CAMEL-5226: Added headers to set ttl,eternal etc. when adding/updating to cache. Thanks to Mark Ford for the patch.
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1358698 13f79535-47bb-0310-9956-ffa450edef68

        Claus Ibsen committed 1358698 (1 file)
        Reviews: none

        CAMEL-5226: Added headers to set ttl,eternal etc. when adding/updating to cache. Thanks to Mark Ford for the patch.

        Hide
        Claus Ibsen added a comment -

        Thanks for the patch.

        Show
        Claus Ibsen added a comment - Thanks for the patch.
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Claus Ibsen [ davsclaus ]
        Fix Version/s 2.11 [ 12321695 ]
        Fix Version/s Future [ 12315692 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Mark Ford
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development