共用方式為


IBufferDistributedCache 介面

定義

public interface class IBufferDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public interface IBufferDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type IBufferDistributedCache = interface
    interface IDistributedCache
Public Interface IBufferDistributedCache
Implements IDistributedCache
衍生
實作

方法

Get(String)

取得具有指定索引鍵的值。

(繼承來源 IDistributedCache)
GetAsync(String, CancellationToken)

取得具有指定索引鍵的值。

(繼承來源 IDistributedCache)
Refresh(String)

根據快取索引鍵重新整理快取中的值,重設滑動期限逾時 (如有)。

(繼承來源 IDistributedCache)
RefreshAsync(String, CancellationToken)

根據快取索引鍵重新整理快取中的值,重設滑動期限逾時 (如有)。

(繼承來源 IDistributedCache)
Remove(String)

移除具有指定索引鍵的值。

(繼承來源 IDistributedCache)
RemoveAsync(String, CancellationToken)

移除具有指定索引鍵的值。

(繼承來源 IDistributedCache)
Set(String, Byte[], DistributedCacheEntryOptions)

使用指定的索引鍵設定值。

(繼承來源 IDistributedCache)
Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

使用指定的索引鍵設定值。

(繼承來源 IDistributedCache)
SetAsync(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions, CancellationToken)
TryGet(String, IBufferWriter<Byte>)
TryGetAsync(String, IBufferWriter<Byte>, CancellationToken)

擴充方法

GetString(IDistributedCache, String)

使用指定的索引鍵,從指定的快取中取得字串。

GetStringAsync(IDistributedCache, String, CancellationToken)

以非同步方式,使用指定的索引鍵,從指定的快取中取得字串。

Set(IDistributedCache, String, Byte[])

使用指定的索引鍵,在指定的快取中設定位元組序列。

SetAsync(IDistributedCache, String, Byte[], CancellationToken)

以非同步方式,使用指定的索引鍵,在指定的快取中設定位元組序列。

SetString(IDistributedCache, String, String)

使用指定的索引鍵,在指定的快取中設定字串。

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

使用指定的索引鍵,在指定的快取中設定字串。

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken)

以非同步方式,使用指定的索引鍵,在指定的快取中設定字串。

SetStringAsync(IDistributedCache, String, String, CancellationToken)

以非同步方式,使用指定的索引鍵,在指定的快取中設定字串。

適用於