Class VariantGroupPropertyService
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
Provides methods for querying and persisting the VariantGroupProperty values defined on a variant group, i.e. the extra per-option fields its options can carry. Reached through VariantGroupService.
public class VariantGroupPropertyService : ICacheStorage<string, IList<VariantGroupProperty>>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
VariantGroupPropertyService
- Implements
- Inherited Members
Properties
Info
Gets information about the state of the variant group property cache.
public CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Clears all cached variant group properties and raises the variant group property cleared notification.
public void ClearCache()
ClearCache(IEnumerable<string>)
Clears the cached properties of the given variant groups and raises the variant group property cleared notification.
public void ClearCache(IEnumerable<string> keys)
Parameters
keysIEnumerable<string>The IDs of the variant groups to evict.
ClearCache(string)
Clears the cached properties of the given variant group and raises the variant group property cleared notification.
public void ClearCache(string key)
Parameters
keystringThe ID of the variant group to evict.
SetCacheType<TObjectCache>()
Switches the variant group property cache to the given cache implementation.
public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, IList<VariantGroupProperty>>
Type Parameters
TObjectCacheThe cache implementation to use.