次の方法で共有


SqlServerCache クラス

定義

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

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

コンストラクター

SqlServerCache(IOptions<SqlServerCacheOptions>)

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

メソッド

Equals(Object)

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

(継承元 Object)
Get(String)

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

GetAsync(String, CancellationToken)

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

GetHashCode()

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

(継承元 Object)
GetType()

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

(継承元 Object)
MemberwiseClone()

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

(継承元 Object)
Refresh(String)

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

RefreshAsync(String, CancellationToken)

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

Remove(String)

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

RemoveAsync(String, CancellationToken)

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

Set(String, Byte[], DistributedCacheEntryOptions)

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

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

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

ToString()

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

(継承元 Object)

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

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)

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

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

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

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

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

SetStringAsync(IDistributedCache, String, String, CancellationToken)

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

適用対象