Aracılığıyla paylaş


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

Oluşturucular

SqlServerCache(IOptions<SqlServerCacheOptions>)

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

Yöntemler

Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
Get(String)

Verilen anahtarla bir değer alır.

GetAsync(String, CancellationToken)

Verilen anahtarla bir değer alır.

GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
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.

ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Belirtik Arabirim Kullanımları

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ı

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)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Belirtilen önbellekte belirtilen anahtarla bir dize ayarlar.

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

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

SetStringAsync(IDistributedCache, String, String, CancellationToken)

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

Şunlara uygulanır