KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > cache > LRUCache


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

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 /**
14  * LRUCache.
15  *
16  * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a>
17  * @version $Revision: 1.6 $ $Date: 2002/01/27 05:01:01 $
18  */

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