1 8 package org.apache.avalon.excalibur.cache; 9 10 import org.apache.avalon.excalibur.cache.policy.LRUPolicy; 11 import org.apache.avalon.excalibur.cache.store.MemoryStore; 12 13 19 public class LRUCache 20 extends DefaultCache 21 { 22 public LRUCache( final int capacity ) 23 { 24 this( new MemoryStore( capacity ) ); 25 } 26 27 public LRUCache( final CacheStore store ) 28 { 29 super( new LRUPolicy(), store ); 30 } 31 } 32 | Popular Tags |