net.sf.ehcache.store

Class LruMemoryStore

public final class LruMemoryStore extends MemoryStore

An implementation of a LruMemoryStore.

This uses java.util.LinkedHashMap as its backing map. It uses the java.util.LinkedHashMap LRU feature. LRU for this implementation means least recently accessed.

Version: $Id: LruMemoryStore.java 94 2006-05-25 09:06:30Z gregluck $

Author: Greg Luck

Nested Class Summary
classLruMemoryStore.SpoolingLinkedHashMap
An extension of LinkedHashMap which overrides SpoolingLinkedHashMap to persist cache entries to the auxiliary cache before they are removed.
classLruMemoryStore.SpoolingLRUMap
An LRU Map implementation based on Apache Commons LRUMap.
Constructor Summary
LruMemoryStore(Ehcache cache, DiskStore diskStore)
Constructor for the LruMemoryStore object The backing java.util.LinkedHashMap is created with LRU by access order.

Constructor Detail

LruMemoryStore

public LruMemoryStore(Ehcache cache, DiskStore diskStore)
Constructor for the LruMemoryStore object The backing java.util.LinkedHashMap is created with LRU by access order.