1 Reply Latest reply on Feb 14, 2013 8:07 AM by Jonathan.Knight

    Coherence cache expiry-delay problem

      Hi. I am tryin to have a cache which will delete inatsnces after 24 hours if they have not been read or updated. So I did configuration like this:

      <?xml version="1.0" encoding="UTF-8"?>



      But the thing is, it cleans the cache items even they have been used in recent 24 hours or updated. SO my cache shrinks. What can be the reason of it? By the way, I am making a bulk update with this:

      cache.invokeAll(mapBuffer.keySet(), new ConditionalPutAll(AlwaysFilter.INSTANCE, mapBuffer));

      So I am sure about that 99 percent of my items are updated.
        • 1. Re: Coherence cache expiry-delay problem

          Setting the expiry time sets the time-to-live of entries put into the cache, so in your case an entry will live in the cache for at least 24 hours after it has been put. Reading the entry will not reset this time, it is just based on the time the entry was originally put in the cache. An update should reset the TTL, as this is equivalent of another put.