RedisCache 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public ref class RedisCache : IDisposable, Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class RedisCache : IDisposable, Microsoft.Extensions.Caching.Distributed.IDistributedCache
type RedisCache = class
interface IDistributedCache
interface IDisposable
Public Class RedisCache
Implements IDisposable, IDistributedCache
- 繼承
-
RedisCache
- 實作
建構函式
RedisCache(IOptions<RedisCacheOptions>) |
方法
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Get(String) |
取得具有指定索引鍵的值。 |
GetAsync(String) | |
GetAsync(String, CancellationToken) |
取得具有指定索引鍵的值。 |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
Refresh(String) |
根據快取索引鍵重新整理快取中的值,重設滑動期限逾時 (如有)。 |
RefreshAsync(String) | |
RefreshAsync(String, CancellationToken) |
根據快取索引鍵重新整理快取中的值,重設滑動期限逾時 (如有)。 |
Remove(String) |
移除具有指定索引鍵的值。 |
RemoveAsync(String) | |
RemoveAsync(String, CancellationToken) |
移除具有指定索引鍵的值。 |
Set(String, Byte[], DistributedCacheEntryOptions) |
使用指定的索引鍵設定值。 |
SetAsync(String, Byte[], DistributedCacheEntryOptions) | |
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) |
使用指定的索引鍵設定值。 |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
擴充方法
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應