1 package info.magnolia.cms.cache; 2 3 import info.magnolia.cms.beans.config.ConfigurationException; 4 import info.magnolia.cms.core.Content; 5 6 import javax.servlet.http.HttpServletRequest ; 7 import javax.servlet.http.HttpServletResponse ; 8 9 10 15 public interface CacheManager { 16 17 boolean cacheRequest(CacheKey key, CacheableEntry entry, boolean canCompress); 18 19 CacheKey getCacheKey(HttpServletRequest request); 20 21 boolean isCacheable(HttpServletRequest request); 22 23 boolean canCompress(HttpServletRequest request); 24 25 void flushAll(); 26 27 long getCreationTime(CacheKey request); 28 29 void init(Content content) throws ConfigurationException; 30 31 boolean isEnabled(); 32 33 boolean isPaused(); 34 35 boolean isRunning(); 36 37 boolean isStarted(); 38 39 void pause(); 40 41 void restart(); 42 43 void resume(); 44 45 void start(); 46 47 void stop(); 48 49 boolean streamFromCache(CacheKey request, HttpServletResponse response, boolean canCompress); 50 } 51 | Popular Tags |