Table of Contents

Interface IEntityCache<TCacheItem, TCacheKey>

Namespace
CMS.Plugin.MesSuite.Abstractions
Assembly
CMS.Plugin.MesSuite.Abstractions.dll

实体缓存

public interface IEntityCache<TCacheItem, TCacheKey> where TCacheItem : class

Type Parameters

TCacheItem

The type of the cache item.

TCacheKey

Methods

ClearCacheAsync()

Clears the cache asynchronous.

Task ClearCacheAsync()

Returns

Task

GetAsync(TCacheKey)

Gets the asynchronous.

Task<TCacheItem> GetAsync(TCacheKey key)

Parameters

key TCacheKey

The key.

Returns

Task<TCacheItem>

RemoveAsync(TCacheKey)

Removes the asynchronous.

Task RemoveAsync(TCacheKey key)

Parameters

key TCacheKey

The key.

Returns

Task

SetAsync(TCacheKey, TCacheItem)

Sets the asynchronous.

Task SetAsync(TCacheKey key, TCacheItem value)

Parameters

key TCacheKey

The key.

value TCacheItem

The value.

Returns

Task