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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
long
long
int
hashCode()
void
setDoCaching
(boolean doCaching) void
setExpireAfter
(long expireAfter) void
setRefreshFrequency
(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()
-