MemoryDistributedCache クラス

定義

を使用IMemoryCacheする のIDistributedCache実装。

public ref class MemoryDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class MemoryDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type MemoryDistributedCache = class
    interface IDistributedCache
Public Class MemoryDistributedCache
Implements IDistributedCache
継承
MemoryDistributedCache
実装

コンストラクター

MemoryDistributedCache(IMemoryCache)

を使用IMemoryCacheする のIDistributedCache実装。

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

新しい MemoryDistributedCache のインスタンスを作成します。

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

新しい MemoryDistributedCache のインスタンスを作成します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
Get(String)

指定したキーを使用して値を取得します。

GetAsync(String)

を使用IMemoryCacheする のIDistributedCache実装。

GetAsync(String, CancellationToken)

指定したキーを使用して値を取得します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
Refresh(String)

(存在する場合) スライド式有効期限のタイムアウトをリセットし、そのキーに基づいてキャッシュ内の値を更新します。

RefreshAsync(String)

を使用IMemoryCacheする のIDistributedCache実装。

RefreshAsync(String, CancellationToken)

(存在する場合) スライド式有効期限のタイムアウトをリセットし、そのキーに基づいてキャッシュ内の値を更新します。

Remove(String)

指定したキーを使用して値を削除します。

RemoveAsync(String)

を使用IMemoryCacheする のIDistributedCache実装。

RemoveAsync(String, CancellationToken)

指定したキーを使用して値を削除します。

Set(String, Byte[], DistributedCacheEntryOptions)

指定したキーを使用して値を設定します。

SetAsync(String, Byte[], DistributedCacheEntryOptions)

を使用IMemoryCacheする のIDistributedCache実装。

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

指定したキーを使用して値を設定します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

拡張メソッド

GetString(IDistributedCache, String)

指定したキーを使用して、指定したキャッシュから文字列を取得します。

GetStringAsync(IDistributedCache, String)

指定したキーを使用して、指定したキャッシュから文字列を非同期で取得します。

GetStringAsync(IDistributedCache, String, CancellationToken)

指定したキーを使用して、指定したキャッシュから文字列を非同期で取得します。

Set(IDistributedCache, String, Byte[])

指定したキーを使用して、指定したキャッシュにバイトのシーケンスを設定します。

SetAsync(IDistributedCache, String, Byte[])

指定したキーを使用して、指定したキャッシュにバイトのシーケンスを非同期で設定します。

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

指定したキーを使用して、指定したキャッシュにバイトのシーケンスを非同期で設定します。

SetString(IDistributedCache, String, String)

指定したキーを使用して、指定したキャッシュに文字列を設定します。

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

指定したキーを使用して、指定したキャッシュに文字列を設定します。

SetStringAsync(IDistributedCache, String, String)

指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions)

指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。

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

指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。

SetStringAsync(IDistributedCache, String, String, CancellationToken)

指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。

適用対象