1 package info.magnolia.cms.cache.noop; 2 3 import info.magnolia.cms.cache.Cache; 4 import info.magnolia.cms.cache.CacheConfig; 5 import info.magnolia.cms.cache.CacheKey; 6 import info.magnolia.cms.cache.CacheableEntry; 7 8 import javax.servlet.http.HttpServletRequest ; 9 import javax.servlet.http.HttpServletResponse ; 10 11 12 18 public class NoOpCache implements Cache { 19 20 23 public void cacheRequest(HttpServletRequest request) { 24 } 25 26 29 public void flush() { 30 } 31 32 36 public long getCreationTime(HttpServletRequest request) { 37 return Cache.UNKNOWN_CREATION_TIME; 38 } 39 40 43 public void start(CacheConfig config) { 44 } 45 46 50 public boolean isCached(CacheKey request) { 51 return false; 52 } 53 54 57 public void stop() { 58 } 59 60 64 public boolean streamFromCache(HttpServletRequest request, HttpServletResponse response, boolean canCompress) { 65 return false; 66 } 67 68 72 public void cacheRequest(CacheKey key, CacheableEntry out, boolean canCompress) { 73 74 } 75 76 79 public long getCreationTime(CacheKey request) { 80 return 0; 81 } 82 83 87 public boolean streamFromCache(CacheKey key, HttpServletResponse response, boolean canCompress) { 88 return false; 89 } 90 91 94 public void remove(CacheKey key) { 95 96 } 97 98 } 99 | Popular Tags |