Class CacheInfo
java.lang.Object
com.broadleafcommerce.common.extension.cache.api.CacheInfo
Basic information used for interaction with the
CacheManager during a
CacheUtility.forSingleWith(CacheStateManager) call.- Author:
- Jeff Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanObject[]getArgs()Any method arguments, or other suitable key fragments that should be combined during key generation fromgenerator.The name of the cache inCacheManagerDeprecated.TheContextKeyGeninstance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs.Function<Stream<?>,List<EntityInfo>> Optional.inthashCode()voidsetFactoryFunction(Supplier<EntityInfo> factoryFunction) Deprecated.useinfoFunctioninsteadvoidsetInfoFunction(Function<Stream<?>, List<EntityInfo>> infoFunction) Optional.toString()
-
Constructor Details
-
CacheInfo
-
-
Method Details
-
getCacheName
The name of the cache inCacheManager -
getGenerator
TheContextKeyGeninstance responsible for creating a complete and accurate cache key for all the computed members based onimperativeArgs. -
getArgs
Any method arguments, or other suitable key fragments that should be combined during key generation fromgenerator. -
getFactoryFunction
Deprecated.useinfoFunctioninsteadOptional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. -
getInfoFunction
Optional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. The input to the function is the result ofSingleItemCacheable.computeIfAbsent(Supplier). If the input happens to be streamable, this it's stream is used. Otherwise, a single item list of the specific result ofcomputeIfAbsentis streamed. The output of the function is the one or more info DTO instances targeting entities whose update will target invalidation of this cache. -
setFactoryFunction
Deprecated.useinfoFunctioninsteadOptional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. -
setInfoFunction
Optional. Create an identifying construct that will influence the cache key. This is useful when it is required to support discrete cache invalidation for members related to specific entities. The input to the function is the result ofSingleItemCacheable.computeIfAbsent(Supplier). If the input happens to be streamable, this it's stream is used. Otherwise, a single item list of the specific result ofcomputeIfAbsentis streamed. The output of the function is the one or more info DTO instances targeting entities whose update will target invalidation of this cache. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
infoFunctioninstead