info.magnolia.module.cache
Class CachePolicyResult
java.lang.Object
info.magnolia.module.cache.CachePolicyResult
public class CachePolicyResult
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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,
java.lang.Object cacheKey,
java.lang.Object cachedEntry)
getBehaviour
public CachePolicyResult.CachePolicyBehaviour getBehaviour()
getCacheKey
public java.lang.Object getCacheKey()
getCachedEntry
public java.lang.Object getCachedEntry()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setCachedEntry
public void setCachedEntry(java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.