Class DefaultOverridePreCacheServiceImpl
java.lang.Object
org.broadleafcommerce.common.cache.DefaultOverridePreCacheServiceImpl
- All Implemented Interfaces:
OverridePreCacheService
@Service("blOverridePreCacheService")
public class DefaultOverridePreCacheServiceImpl
extends Object
implements OverridePreCacheService
Default implementation of
OverridePreCacheService. Simply contains no-ops methods.- Author:
- Jeff Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindElements(String... cacheKeys) Find any cached items matching the passed keysvoidgroomCacheBySiteOverride(String entityType, Long cloneId, boolean isRemove) Add or remove from the cache based on an override declaration.voidgroomCacheByTargetEntity(String entityType, Serializable id) Update an overridden entity value in the cachebooleanisActiveForType(String type) Whether or not the cache is active for the specified typebooleanisActiveIsolatedSiteForType(Long siteId, String entityType) Assuming the passed in site is a standard site, determine whether or not the standard site has any isolated values (i.e. not inherited) for the given type.voidRefresh the entire cache structure.
-
Constructor Details
-
DefaultOverridePreCacheServiceImpl
public DefaultOverridePreCacheServiceImpl()
-
-
Method Details
-
findElements
Description copied from interface:OverridePreCacheServiceFind any cached items matching the passed keys- Specified by:
findElementsin interfaceOverridePreCacheService- Parameters:
cacheKeys- the keys to check- Returns:
-
isActiveForType
Description copied from interface:OverridePreCacheServiceWhether or not the cache is active for the specified type- Specified by:
isActiveForTypein interfaceOverridePreCacheService- Parameters:
type- the entity type to check- Returns:
-
isActiveIsolatedSiteForType
Description copied from interface:OverridePreCacheServiceAssuming the passed in site is a standard site, determine whether or not the standard site has any isolated values (i.e. not inherited) for the given type. This information is generally useful when making optimized query determinations for whether or not the standard site should be included in the query.- Specified by:
isActiveIsolatedSiteForTypein interfaceOverridePreCacheService- Returns:
-
groomCacheBySiteOverride
Description copied from interface:OverridePreCacheServiceAdd or remove from the cache based on an override declaration.- Specified by:
groomCacheBySiteOverridein interfaceOverridePreCacheService
-
groomCacheByTargetEntity
Description copied from interface:OverridePreCacheServiceUpdate an overridden entity value in the cache- Specified by:
groomCacheByTargetEntityin interfaceOverridePreCacheService
-
refreshCache
public void refreshCache()Description copied from interface:OverridePreCacheServiceRefresh the entire cache structure. Presumably, this will clear and rebuild the structure.- Specified by:
refreshCachein interfaceOverridePreCacheService
-