Table of Contents

Class VariantGroupProductRelationService

Namespace
Dynamicweb.Ecommerce.Variants
Assembly
Dynamicweb.Ecommerce.dll

Provides methods for querying and persisting the VariantGroupProductRelation values that tie products to the variant groups they vary over. Reached through VariantGroupService.

public class VariantGroupProductRelationService : ICacheStorage<string, List<VariantGroupProductRelation>>, ICacheStorage<string>, ICacheStorage
Inheritance
VariantGroupProductRelationService
Implements
Inherited Members

Properties

Info

Gets information about the state of the product relation cache.

public CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

Clears all cached product relations and raises the variant group product relation cleared notification.

public void ClearCache()

ClearCache(IEnumerable<string>)

Clears the cached product relations of the given products and raises the variant group product relation cleared notification.

public void ClearCache(IEnumerable<string> keys)

Parameters

keys IEnumerable<string>

The IDs of the products to evict.

ClearCache(string)

Clears the cached product relations of the given product and raises the variant group product relation cleared notification.

public void ClearCache(string key)

Parameters

key string

The ID of the product to evict.

SetCacheType<TObjectCache>()

Switches the product relation cache to the given cache implementation.

public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, List<VariantGroupProductRelation>>

Type Parameters

TObjectCache

The cache implementation to use.

To top