Class CacheContext
- java.lang.Object
-
- com.broadleafcommerce.common.extension.cache.condition.CacheContext
-
public class CacheContext extends Object
Several caches (most notably caches related to entity retrieval) are sensitive to the value of this thread local. If not enabled, the cache is deactivated for the request. This is important because enablement of these caches for a request is generally conditional - most commonly enabled on requests that are not admin requests or sandbox preview requests.- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description CacheContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)static voidclear()booleanequals(Object o)static CacheContextgetContext()inthashCode()booleanisCacheEnabled()static booleanisEnabled()voidsetCacheEnabled(boolean cacheEnabled)StringtoString()
-
-
-
Method Detail
-
getContext
public static CacheContext getContext()
-
clear
public static void clear()
-
isEnabled
public static boolean isEnabled()
-
isCacheEnabled
public boolean isCacheEnabled()
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
-
canEqual
protected boolean canEqual(Object other)
-
-