KickJava   Java API By Example, From Geeks To Geeks.

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


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.TimeMapLRUPolicy;
11 import org.apache.avalon.excalibur.cache.store.MemoryStore;
12
13 /**
14  * TimeMapLRUCache.
15  *
16  * @author <a HREF="alag@users.sourceforge.net">Alexis Agahi</a>
17  */

18 public class TimeMapLRUCache
19     extends DefaultCache
20 {
21     public TimeMapLRUCache( final int capacity )
22     {
23         this( new MemoryStore( capacity ) );
24     }
25
26     public TimeMapLRUCache( final CacheStore store )
27     {
28         super( new TimeMapLRUPolicy(), store );
29     }
30 }
31
Popular Tags