You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gh...@apache.org on 2003/07/13 05:10:10 UTC

cvs commit: cocoon-2.1/src/java/org/apache/cocoon/caching Cache.java

ghoward     2003/07/12 20:10:10

  Modified:    src/java/org/apache/cocoon/caching/impl CacheImpl.java
               src/java/org/apache/cocoon/caching Cache.java
  Log:
  Store has this, Cache didn't - needed it.
  
  Revision  Changes    Path
  1.4       +8 -1      cocoon-2.1/src/java/org/apache/cocoon/caching/impl/CacheImpl.java
  
  Index: CacheImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/caching/impl/CacheImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CacheImpl.java	11 Jul 2003 08:59:03 -0000	1.3
  +++ CacheImpl.java	13 Jul 2003 03:10:10 -0000	1.4
  @@ -149,6 +149,13 @@
           this.store.clear();
       }
   
  +	/**
  +	 * See if a response is cached under this key
  +	 */
  +	public boolean containsKey(PipelineCacheKey key) {
  +		return this.store.containsKey(key);
  +	}
  +
       /* (non-Javadoc)
        * @see org.apache.avalon.framework.parameters.Parameterizable#parameterize(org.apache.avalon.framework.parameters.Parameters)
        */
  
  
  
  1.2       +6 -2      cocoon-2.1/src/java/org/apache/cocoon/caching/Cache.java
  
  Index: Cache.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/caching/Cache.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Cache.java	9 Mar 2003 00:08:43 -0000	1.1
  +++ Cache.java	13 Jul 2003 03:10:10 -0000	1.2
  @@ -57,7 +57,7 @@
   /**
    * This is the Cocoon cache. This component is responsible for storing
    * and retrieving cached responses. It can be used to monitor the cache
  - * or the investigate which responses are cached etc.
  + * or to investigate which responses are cached etc.
    * This interface will grow!
    *
    * @since 2.1
  @@ -103,4 +103,8 @@
        */
       void clear();
   
  +    /**
  +     * See if a response is cached under this key.
  +     */
  +    boolean containsKey(PipelineCacheKey key);
   }