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 52 2006-04-24 14:50:03Z 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(Cache 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(Cache cache, DiskStore diskStore)
Constructor for the LruMemoryStore object The backing java.util.LinkedHashMap is created with LRU by access order.