Class CachingOptions

java.lang.Object
org.craftercms.core.service.CachingOptions

public class CachingOptions extends Object
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 Details

    • DEFAULT_CACHING_OPTIONS

      public static final CachingOptions DEFAULT_CACHING_OPTIONS
    • CACHE_OFF_CACHING_OPTIONS

      public static final CachingOptions 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object