6 Replies Latest reply on Aug 30, 2011 8:05 AM by Dmitry Shohov

    Removal of expired entries

    Dmitry Shohov Newbie

      Hi,

         I was experimenting with infinispan and was very surprised that expired entries are never removed from the memory with default configuration. Nothing is sayd about it in documentation. It seems you need to add <eviction> element in configuration and also set maxEntries attribute because it is required. But i don't need bounded cache, i just want my entries to be removed after 15 minutes. If I set Integer.MAX_VALUE I get OutOfMemoryException so I assume it allocates memory for the number of entries specified.

       

         Is it possible to configure it for removing expired entries without setting any bounds to the size of the cache?

       

      I'm using infinispan 5.0.0.FINAL

       

      Thanks