Skip to main content

I want my cache to expire the entry after 2 minutes and also to check the entry every in 1 minutes.

I had used a reference to strategy and filter using an expression as I have no idea how to use the Global filter for Cache.

The above code does not expire my cache entry

 

code snippet is as below :

*

<managed-store storeName="responseCache" persistent="true" maxEntries="5" entryTTL="100000" expirationInterval="100000"/>

</ee:object-store-caching-strategy>*

 

Thanks in Advance

7 answers
  1. Sep 17, 2017, 5:24 PM

    If you look the schema and it's definition :

    https://www.mulesoft.org/schema/mule/core/3.8/mule.xsd

    It says in maxEntries, "Specify '-1' if the store is supposed to be "unbounded"." .. It is something like no restriction entries .. similarly for entryTTL, if you specify -1, then the cache will never expire as per it's schema

0/9000