共用方式為


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)

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

適用於