Table of Contents

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

CacheInformation

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

key VariantGroupPropertyValueKey

The 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

keys IEnumerable<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

TObjectCache

The cache implementation to use.

To top