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

Cache configuration using properties file

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      There should be a way to configure camel-cache with properties file using DefaultPropertiesResolver#loadPropertiesFromClasspath. So the route might look like this:

      from("cache://myCache?configurationFile=classpath:com/foo/mycache.properties")...
      

      instead of

      from("cache://MyApplicationCache" +
                "?maxElementsInMemory=1000" +
                "&memoryStoreEvictionPolicy=" +
                    "MemoryStoreEvictionPolicy.LFU" +
                "&overflowToDisk=true" +
                "&eternal=true" +
                "&timeToLiveSeconds=300" +
                "&timeToIdleSeconds=true" +
                "&diskPersistent=true" +
                "&diskExpiryThreadIntervalSeconds=300")
      

      This improvement was added due to Henryk Konsek request.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nannou9 Piotr Klimczak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: