1 package info.magnolia.cms.cache; 2 3 import info.magnolia.cms.beans.config.ConfigurationException; 4 5 import javax.servlet.http.HttpServletResponse ; 6 7 8 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 response, boolean canCompress); 26 27 long getCreationTime(CacheKey key); 28 29 void remove(CacheKey key); 30 31 void flush(); 32 33 } 34 | Popular Tags |