Class CacheInvoker

java.lang.Object
org.springframework.cache.interceptor.AbstractCacheInvoker
com.broadleafcommerce.common.extension.cache.CacheInvoker

public class CacheInvoker extends org.springframework.cache.interceptor.AbstractCacheInvoker
Utility for performing manual cache operations while leveraging the configured CacheErrorHandler.
  • Field Summary

    Fields inherited from class org.springframework.cache.interceptor.AbstractCacheInvoker

    errorHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheInvoker(org.springframework.cache.interceptor.CacheErrorHandler errorHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doClear(org.springframework.cache.Cache cache)
     
    void
    doClear(org.springframework.cache.Cache cache, boolean immediate)
     
    void
    doEvict(org.springframework.cache.Cache cache, Object key)
     
    void
    doEvict(org.springframework.cache.Cache cache, Object key, boolean immediate)
     
    org.springframework.cache.Cache.ValueWrapper
    doGet(org.springframework.cache.Cache cache, Object key)
     
    void
    doPut(org.springframework.cache.Cache cache, Object key, Object value)
     

    Methods inherited from class org.springframework.cache.interceptor.AbstractCacheInvoker

    doGet, doRetrieve, doRetrieve, getErrorHandler, setErrorHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheInvoker

      public CacheInvoker(org.springframework.cache.interceptor.CacheErrorHandler errorHandler)
  • Method Details

    • doGet

      public org.springframework.cache.Cache.ValueWrapper doGet(org.springframework.cache.Cache cache, Object key)
      Overrides:
      doGet in class org.springframework.cache.interceptor.AbstractCacheInvoker
    • doPut

      public void doPut(org.springframework.cache.Cache cache, Object key, Object value)
      Overrides:
      doPut in class org.springframework.cache.interceptor.AbstractCacheInvoker
    • doEvict

      public void doEvict(org.springframework.cache.Cache cache, Object key)
    • doEvict

      public void doEvict(org.springframework.cache.Cache cache, Object key, boolean immediate)
      Overrides:
      doEvict in class org.springframework.cache.interceptor.AbstractCacheInvoker
    • doClear

      public void doClear(org.springframework.cache.Cache cache)
    • doClear

      public void doClear(org.springframework.cache.Cache cache, boolean immediate)
      Overrides:
      doClear in class org.springframework.cache.interceptor.AbstractCacheInvoker