Share via


MemoryDistributedCache Sınıf

Tanım

kullanma IMemoryCacheuygulamasıIDistributedCache.

public ref class MemoryDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class MemoryDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type MemoryDistributedCache = class
    interface IDistributedCache
Public Class MemoryDistributedCache
Implements IDistributedCache
Devralma
MemoryDistributedCache
Uygulamalar

Oluşturucular

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Yeni bir MemoryDistributedCache örneği oluşturur.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Yeni bir MemoryDistributedCache örneği oluşturur.

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)

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