avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/cache TimeMapLRUCache.java
Date Mon, 28 Jan 2002 07:28:17 GMT
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 <alag@users.sourceforge.net>
  
  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="alag@users.sourceforge.net">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:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message