info.magnolia.module.cache
Class CachePolicyResult
java.lang.Object
info.magnolia.module.cache.CachePolicyResult
public class CachePolicyResult
- extends Object
CachePolicy returns instances of this class - depending on the value
of the behaviour property, the cacheKey and cachedEntry values might
be set or not.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
store
public static final CachePolicyResult.CachePolicyBehaviour store
useCache
public static final CachePolicyResult.CachePolicyBehaviour useCache
bypass
public static final CachePolicyResult.CachePolicyBehaviour bypass
CachePolicyResult
public CachePolicyResult(CachePolicyResult.CachePolicyBehaviour behaviour,
Object cacheKey,
Object cachedEntry)
getBehaviour
public CachePolicyResult.CachePolicyBehaviour getBehaviour()
getCacheKey
public Object getCacheKey()
getCachedEntry
public Object getCachedEntry()
toString
public String toString()
- Overrides:
toString
in class Object
setCachedEntry
public void setCachedEntry(Object entry)
setCurrent
public static void setCurrent(CachePolicyResult cachePolicyResult)
- Saves the result in the context and makes it available by
getCurrent()
.
getCurrent
public static CachePolicyResult getCurrent()
- Returns the current
CachePolicyResult
which was set by the CacheFilter
.
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.