3 Replies Latest reply on Apr 22, 2008 3:56 AM by manik

    Expiring elements after restarting cache

    tugman

      Hello.

      I'm using FileCacheLoader to store elements of cache in disk and LRU eviction policy. If I put a node in cache, after "timeToLiveSeconds" passed, it is removed (and my listener gets called). This is ok.

      My problem is that when I restart de cache, elements that are stored there are reloaded, but never more get expired and stay there forever. I think they should expire not just because maxNodes were reached; after restart, "TimeToLiveSeconds" should work for elements loaded from disk like it was before restarting.

      Is there a way to have this behaviour ?

      Thanks in advance.