SqlServerCache Sınıf

Tanım

Microsoft SQL Server veritabanı kullanılarak dağıtılmış önbellek uygulaması.

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
Devralma
SqlServerCache
Uygulamalar

Oluşturucular

Name Description
SqlServerCache(IOptions<SqlServerCacheOptions>)

yeni bir örneğini SqlServerCachebaşlatır.

Yöntemler

Name Description
Get(String)

Verilen anahtarla bir değer alır.

GetAsync(String, CancellationToken)

Verilen anahtarla bir değer alır.

Refresh(String)

Önbellekteki bir değeri anahtarına göre yeniler ve kayan süre sonu zaman aşımını (varsa) sıfırlar.

RefreshAsync(String, CancellationToken)

Önbellekteki bir değeri anahtarına göre yeniler ve kayan süre sonu zaman aşımını (varsa) sıfırlar.

Remove(String)

Verilen anahtarla değeri kaldırır.

RemoveAsync(String, CancellationToken)

Verilen anahtarla değeri kaldırır.

Set(String, Byte[], DistributedCacheEntryOptions)

Verilen anahtarla bir değer ayarlar.

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

Değeri verilen anahtarla ayarlar.

Belirtik Arabirim Kullanımları

Name Description
IBufferDistributedCache.Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions)

Microsoft SQL Server veritabanı kullanılarak dağıtılmış önbellek uygulaması.

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

Microsoft SQL Server veritabanı kullanılarak dağıtılmış önbellek uygulaması.

IBufferDistributedCache.TryGet(String, IBufferWriter<Byte>)

Microsoft SQL Server veritabanı kullanılarak dağıtılmış önbellek uygulaması.

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

Microsoft SQL Server veritabanı kullanılarak dağıtılmış önbellek uygulaması.

Uzantı Metotları

Name Description
GetString(IDistributedCache, String)

Belirtilen önbellekten belirtilen anahtarla bir dize alır.

GetStringAsync(IDistributedCache, String, CancellationToken)

Belirtilen önbellekten belirtilen anahtarla zaman uyumsuz olarak bir dize alır.

Set(IDistributedCache, String, Byte[])

Belirtilen önbellekte belirtilen anahtarla bir bayt dizisi ayarlar.

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

Belirtilen önbellekte belirtilen anahtarla zaman uyumsuz olarak bir bayt dizisi ayarlar.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

SetString(IDistributedCache, String, String)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

SetStringAsync(IDistributedCache, String, String, CancellationToken)

Belirtilen önbellekte belirtilen anahtarla zaman uyumsuz olarak bir dize ayarlar.

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

Belirtilen önbellekte belirtilen anahtarla zaman uyumsuz olarak bir dize ayarlar.

Şunlara uygulanır