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
GetAsync(TCacheKey)
Gets the asynchronous.
Task<TCacheItem> GetAsync(TCacheKey key)
Parameters
key
TCacheKeyThe key.
Returns
- Task<TCacheItem>
RemoveAsync(TCacheKey)
Removes the asynchronous.
Task RemoveAsync(TCacheKey key)
Parameters
key
TCacheKeyThe key.
Returns
SetAsync(TCacheKey, TCacheItem)
Sets the asynchronous.
Task SetAsync(TCacheKey key, TCacheItem value)
Parameters
key
TCacheKeyThe key.
value
TCacheItemThe value.