• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009



Ehcache currently supports only Least Recently Used (LRU) policy for the memory store. The proposed patch has the implementations for for the First In First Out (FIFO) and the Least Frequently Used (LFU) policies.

The new classes can be tested programmatically. The patch also consists of the corresponding test classes for both FIFO and LFU.

The changes warrant some minor changes in the design. This caused the changes to MemoryStore and Cache classes. The modified classes are also provided in the patch

New classes:

  1. AbstractMemoryStore
  2. FifoMemoryStore
  3. LfuMemoryStore
  4. FifoMemoryStoreTest
  5. LfuMemoryStoreTest

Modified classes:

  1. Cache
  2. MemoryStore


Currently, the new policies can only be tested programmatically. A new attribute “memoryStorePolicy” is to be added to the “Cache” element in the ehcache.xml, and have to make necessary changes in the code to read the attribute.

  • Surya Suravarapu Sourceforge Ticket ID: 1203256 - Opened By: ssuravarapu - 17 May 2005 01:29 UTC


Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira