colus 02/01/27 23:28:17
Added: src/scratchpad/org/apache/avalon/excalibur/cache
TimeMapLRUCache.java
Log:
TimeMapLRUCache replacement policy.
On large cache this impl should be faster than current LRUPolicy.
Submitted By: Alexis Agahi <[EMAIL PROTECTED]>
Revision Changes Path
1.1
jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache/TimeMapLRUCache.java
Index: TimeMapLRUCache.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.excalibur.cache;
import org.apache.avalon.excalibur.cache.policy.TimeMapLRUPolicy;
import org.apache.avalon.excalibur.cache.store.MemoryStore;
/**
* TimeMapLRUCache.
*
* @author <a href="[EMAIL PROTECTED]">Alexis Agahi</a>
*/
public class TimeMapLRUCache
extends DefaultCache
{
public TimeMapLRUCache( final int capacity )
{
this( new MemoryStore( capacity ) );
}
public TimeMapLRUCache( final CacheStore store )
{
super( new TimeMapLRUPolicy(), store );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>