org.apache.cocoon.cache
Interface Cache

All Known Implementing Classes:
NoCache, CocoonCache

public interface Cache
extends Actor

The interface that all caching implementations must adhere to.

Version:
$Revision: 1.5 $Date: 2000/02/14 00:59:18 $
Author:
Stefano Mazzocchi

Method Summary
 void flush()
          Flushes the cache and forces an additional cache cleanup.
 Page getPage(javax.servlet.http.HttpServletRequest request)
          It returns null if no page is available.
 void setPage(Page page, javax.servlet.http.HttpServletRequest request)
          Sets the page into the cache system using data from the request object for indexing.
 
Methods inherited from interface org.apache.cocoon.framework.Actor
init
 

Method Detail

getPage

public Page getPage(javax.servlet.http.HttpServletRequest request)
It returns null if no page is available.

setPage

public void setPage(Page page,
                    javax.servlet.http.HttpServletRequest request)
Sets the page into the cache system using data from the request object for indexing.

flush

public void flush()
Flushes the cache and forces an additional cache cleanup. This is normally used when the system requires additional memory.


Copyright © 1999-2000 Apache Software Foundation. All Rights Reserved.