Class VariantGroupOptionPropertyValueService
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
Provides methods for querying and persisting the values that a VariantOption carries for the VariantGroupProperty values defined on its group. Reached through VariantGroupService.
public class VariantGroupOptionPropertyValueService : ICacheStorage<VariantGroupPropertyValueKey, string>, ICacheStorage<VariantGroupPropertyValueKey>, ICacheStorage
- Inheritance
-
VariantGroupOptionPropertyValueService
- Implements
- Inherited Members
Properties
Info
Gets information about the state of the option property value cache.
public CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Clears all cached option property values and raises the variant group option value cleared notification.
public void ClearCache()
ClearCache(VariantGroupPropertyValueKey)
Clears one cached option property value and raises the variant group option value cleared notification.
public void ClearCache(VariantGroupPropertyValueKey key)
Parameters
keyVariantGroupPropertyValueKeyThe key identifying the option, property and language to evict.
ClearCache(IEnumerable<VariantGroupPropertyValueKey>)
Clears the given cached option property values and raises the variant group option value cleared notification.
public void ClearCache(IEnumerable<VariantGroupPropertyValueKey> keys)
Parameters
keysIEnumerable<VariantGroupPropertyValueKey>The keys identifying the option, property and language of each value to evict.
SetCacheType<TObjectCache>()
Switches the option property value cache to the given cache implementation.
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<VariantGroupPropertyValueKey, string>
Type Parameters
TObjectCacheThe cache implementation to use.