Table of Contents

Class UserTransactionService

Namespace
Dynamicweb.Ecommerce.Loyalty
Assembly
Dynamicweb.Ecommerce.dll

Reads the loyalty point transactions of a user, cached per user.

public class UserTransactionService : ICacheStorage<int, IList<UserTransaction>>, ICacheStorage<int>, ICacheStorage
Inheritance
UserTransactionService
Implements
Inherited Members

Properties

Info

Gets information about the cache holding the user transactions.

public CacheInformation Info { get; }

Property Value

CacheInformation

Methods

ClearCache()

Drops every cached user transaction.

public void ClearCache()

ClearCache(IEnumerable<int>)

Drops the cached transactions of the given users.

public void ClearCache(IEnumerable<int> keys)

Parameters

keys IEnumerable<int>

The ids of the users whose transactions are dropped.

ClearCache(int)

Drops the cached transactions of the given user.

public void ClearCache(int key)

Parameters

key int

The id of the user whose transactions are dropped.

SetCacheType<TObjectCache>()

Replaces the cache implementation holding the user transactions.

public void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, IList<UserTransaction>>

Type Parameters

TObjectCache

The cache implementation to switch to.

To top