IDistributedCache インターフェイス
定義
シリアル化された値の分散キャッシュを表します。Represents a distributed cache of serialized values.
public interface class IDistributedCache
public interface IDistributedCache
type IDistributedCache = interface
Public Interface IDistributedCache
- 派生
メソッド
Get(String) |
指定したキーを使用して値を取得します。Gets a value with the given key. |
GetAsync(String) | |
GetAsync(String, CancellationToken) |
指定したキーを使用して値を取得します。Gets a value with the given key. |
Refresh(String) |
(存在する場合) スライド式有効期限のタイムアウトをリセットし、そのキーに基づいてキャッシュ内の値を更新します。Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any). |
RefreshAsync(String) | |
RefreshAsync(String, CancellationToken) |
(存在する場合) スライド式有効期限のタイムアウトをリセットし、そのキーに基づいてキャッシュ内の値を更新します。Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any). |
Remove(String) |
指定したキーを使用して値を削除します。Removes the value with the given key. |
RemoveAsync(String) | |
RemoveAsync(String, CancellationToken) |
指定したキーを使用して値を削除します。Removes the value with the given key. |
Set(String, Byte[], DistributedCacheEntryOptions) |
指定したキーを使用して値を設定します。Sets a value with the given key. |
SetAsync(String, Byte[], DistributedCacheEntryOptions) | |
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) |
指定したキーを使用して値を設定します。Sets the value with the given key. |
拡張メソッド
GetString(IDistributedCache, String) |
指定したキーを使用して、指定したキャッシュから文字列を取得します。Gets a string from the specified cache with the specified key. |
GetStringAsync(IDistributedCache, String) |
指定したキーを使用して、指定したキャッシュから文字列を非同期で取得します。Asynchronously gets a string from the specified cache with the specified key. |
GetStringAsync(IDistributedCache, String, CancellationToken) |
指定したキーを使用して、指定したキャッシュから文字列を非同期で取得します。Asynchronously gets a string from the specified cache with the specified key. |
Set(IDistributedCache, String, Byte[]) |
指定したキーを使用して、指定したキャッシュにバイトのシーケンスを設定します。Sets a sequence of bytes in the specified cache with the specified key. |
SetAsync(IDistributedCache, String, Byte[]) |
指定したキーを使用して、指定したキャッシュにバイトのシーケンスを非同期で設定します。Asynchronously sets a sequence of bytes in the specified cache with the specified key. |
SetAsync(IDistributedCache, String, Byte[], CancellationToken) |
指定したキーを使用して、指定したキャッシュにバイトのシーケンスを非同期で設定します。Asynchronously sets a sequence of bytes in the specified cache with the specified key. |
SetString(IDistributedCache, String, String) |
指定したキーを使用して、指定したキャッシュに文字列を設定します。Sets a string in the specified cache with the specified key. |
SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) |
指定したキーを使用して、指定したキャッシュに文字列を設定します。Sets a string in the specified cache with the specified key. |
SetStringAsync(IDistributedCache, String, String) |
指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。Asynchronously sets a string in the specified cache with the specified key. |
SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions) |
指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。Asynchronously sets a string in the specified cache with the specified key. |
SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) |
指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。Asynchronously sets a string in the specified cache with the specified key. |
SetStringAsync(IDistributedCache, String, String, CancellationToken) |
指定したキーを使用して、指定したキャッシュに文字列を非同期で設定します。Asynchronously sets a string in the specified cache with the specified key. |