Class NoopCacheProcessor
java.lang.Object
org.frontcache.cache.CacheProcessorBase
org.frontcache.cache.impl.NoopCacheProcessor
- All Implemented Interfaces:
CacheProcessor
-
Field Summary
Fields inherited from class CacheProcessorBase
logger, softInvalidationExecutorFields inherited from interface CacheProcessor
CACHE_FOREVER, CACHED_ENTRIES, NO_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFromCacheImpl(String url) voidpatch()voidpurge()voidputToCacheImpl(String url, WebResponse component) Stores the entry.voidremoveFromCache(String filter) voidRemoves every entry from this node.Methods inherited from class CacheProcessorBase
destroy, doSoftInvalidation, getCacheStatus, getFromCache, init, processRequest, putToCacheMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheProcessor
backup, destroy, doSoftInvalidation, getCachedKeys, getCacheStats, getCacheStatus, getFromCache, init, processRequest, putToCache
-
Constructor Details
-
NoopCacheProcessor
public NoopCacheProcessor()
-
-
Method Details
-
getFromCacheImpl
- Specified by:
getFromCacheImplin classCacheProcessorBase
-
putToCacheImpl
Description copied from class:CacheProcessorBaseStores the entry. Called byCacheProcessorBase.putToCache(String, WebResponse)once the headers that must never be persisted (Set-Cookie in particular) have been removed.- Specified by:
putToCacheImplin classCacheProcessorBase- Parameters:
url- cache keycomponent- response to store - the cache takes ownership of it
-
removeFromCache
- Specified by:
removeFromCachein interfaceCacheProcessor
-
removeFromCacheAll
public void removeFromCacheAll()Description copied from interface:CacheProcessorRemoves every entry from this node. There used to be a domain-scoped flavour alongside this one. It only dropped entries stamped with the caller's domain, and replicated entries carry the domain of the edge they came from - so an "invalidate all" at the target edge walked straight past them and they stayed served. With one site per node there is one flavour, and it means what it says.- Specified by:
removeFromCacheAllin interfaceCacheProcessor
-
getCachedKeys
- Specified by:
getCachedKeysin interfaceCacheProcessor
-
patch
public void patch()- Specified by:
patchin interfaceCacheProcessor
-
purge
public void purge()- Specified by:
purgein interfaceCacheProcessor
-