SqlServerCache クラス

定義

Microsoft SQL Server データベースを使用した分散キャッシュの実装。

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

コンストラクター

名前 説明
SqlServerCache(IOptions<SqlServerCacheOptions>)

SqlServerCacheの新しいインスタンスを初期化します。

メソッド

名前 説明
Get(String)

指定されたキーを持つ値を取得します。

GetAsync(String, CancellationToken)

指定されたキーを持つ値を取得します。

Refresh(String)

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

RefreshAsync(String, CancellationToken)

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

Remove(String)

指定されたキーを持つ値を削除します。

RemoveAsync(String, CancellationToken)

指定されたキーを持つ値を削除します。

Set(String, Byte[], DistributedCacheEntryOptions)

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

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

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

明示的なインターフェイスの実装

名前 説明
IBufferDistributedCache.Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions)

Microsoft SQL Server データベースを使用した分散キャッシュの実装。

IBufferDistributedCache.SetAsync(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions, CancellationToken)

Microsoft SQL Server データベースを使用した分散キャッシュの実装。

IBufferDistributedCache.TryGet(String, IBufferWriter<Byte>)

Microsoft SQL Server データベースを使用した分散キャッシュの実装。

IBufferDistributedCache.TryGetAsync(String, IBufferWriter<Byte>, CancellationToken)

Microsoft SQL Server データベースを使用した分散キャッシュの実装。

拡張メソッド

名前 説明
GetString(IDistributedCache, String)

指定したキーを持つ指定したキャッシュから文字列を取得します。

GetStringAsync(IDistributedCache, String, CancellationToken)

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

Set(IDistributedCache, String, Byte[])

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

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

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

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

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

SetString(IDistributedCache, String, String)

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

SetStringAsync(IDistributedCache, String, String, CancellationToken)

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

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

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

適用対象