KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > cache > Cache


1 package info.magnolia.cms.cache;
2
3 import info.magnolia.cms.beans.config.ConfigurationException;
4
5 import javax.servlet.http.HttpServletResponse JavaDoc;
6
7
8 /**
9  * @author Andreas Brenk
10  * @author Fabrizio Giustina
11  * @since 3.0
12  */

13 public interface Cache {
14
15     int UNKNOWN_CREATION_TIME = -1;
16
17     void start(CacheConfig config) throws ConfigurationException;
18
19     void stop();
20
21     boolean isCached(CacheKey key);
22
23     void cacheRequest(CacheKey key, CacheableEntry out, boolean canCompress);
24
25     boolean streamFromCache(CacheKey key, HttpServletResponse JavaDoc response, boolean canCompress);
26
27     long getCreationTime(CacheKey key);
28
29     void remove(CacheKey key);
30
31     void flush();
32
33 }
34
Popular Tags