3 Replies Latest reply on Oct 27, 2004 4:27 AM by Morten Kvistgaard


    Morten Kvistgaard Newbie

      I have implemented a simple FIFO eviction policy based on the LRU implementation and it seems to work OK. However the implementation could be simplified a great deal if the LRU classes were made more friendly for extension.

      I've used the same configuration as the LRU implementation, but for FIFO an attribute named 'timeToLive' may be more appropriate than 'timeToIdleSeconds'. The advantage of having the same configuration for both policies is obvisously that the policies can easily be swapped.

      I'd be hapy to supply a patch with the FIFOPolicy and the required changes to the LRU classes if there's any interest.

      Regards and keep up with the excellent work!