Package org.craftercms.core.service
Class CachingOptions
java.lang.Object
org.craftercms.core.service.CachingOptions
Set of options that should be used when caching in a service call.
expireAfter and refreshFrequency
are expressed in ticks.- Author:
- Alfonso Vásquez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanlonglonginthashCode()voidsetDoCaching(boolean doCaching) voidsetExpireAfter(long expireAfter) voidsetRefreshFrequency(long refreshFrequency)
-
Field Details
-
DEFAULT_CACHING_OPTIONS
-
CACHE_OFF_CACHING_OPTIONS
-
-
Constructor Details
-
CachingOptions
public CachingOptions() -
CachingOptions
public CachingOptions(boolean doCaching, long expireAfter, long refreshFrequency)
-
-
Method Details
-
doCaching
public boolean doCaching() -
setDoCaching
public void setDoCaching(boolean doCaching) -
getExpireAfter
public long getExpireAfter() -
setExpireAfter
public void setExpireAfter(long expireAfter) -
getRefreshFrequency
public long getRefreshFrequency() -
setRefreshFrequency
public void setRefreshFrequency(long refreshFrequency) -
equals
-
hashCode
public int hashCode()
-