MemoryDistributedCache MemoryDistributedCache MemoryDistributedCache MemoryDistributedCache Class

Definition

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
Inheritance
MemoryDistributedCacheMemoryDistributedCacheMemoryDistributedCacheMemoryDistributedCache
Implements

Constructors

MemoryDistributedCache(IMemoryCache) MemoryDistributedCache(IMemoryCache) MemoryDistributedCache(IMemoryCache) MemoryDistributedCache(IMemoryCache)
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)
MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory) MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Get(String) Get(String) Get(String) Get(String)
GetAsync(String) GetAsync(String) GetAsync(String) GetAsync(String)
GetAsync(String, CancellationToken) GetAsync(String, CancellationToken) GetAsync(String, CancellationToken) GetAsync(String, CancellationToken)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Refresh(String) Refresh(String) Refresh(String) Refresh(String)
RefreshAsync(String) RefreshAsync(String) RefreshAsync(String) RefreshAsync(String)
RefreshAsync(String, CancellationToken) RefreshAsync(String, CancellationToken) RefreshAsync(String, CancellationToken) RefreshAsync(String, CancellationToken)
Remove(String) Remove(String) Remove(String) Remove(String)
RemoveAsync(String) RemoveAsync(String) RemoveAsync(String) RemoveAsync(String)
RemoveAsync(String, CancellationToken) RemoveAsync(String, CancellationToken) RemoveAsync(String, CancellationToken) RemoveAsync(String, CancellationToken)
Set(String, Byte[], DistributedCacheEntryOptions) Set(String, Byte[], DistributedCacheEntryOptions) Set(String, Byte[], DistributedCacheEntryOptions) Set(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions) SetAsync(String, Byte[], DistributedCacheEntryOptions) SetAsync(String, Byte[], DistributedCacheEntryOptions) SetAsync(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken) SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

GetString(IDistributedCache, String) GetString(IDistributedCache, String) GetString(IDistributedCache, String) GetString(IDistributedCache, String)

Gets a string from the specified cache with the specified key.

GetStringAsync(IDistributedCache, String) GetStringAsync(IDistributedCache, String) GetStringAsync(IDistributedCache, String) GetStringAsync(IDistributedCache, String)

Asynchronously gets a string from the specified cache with the specified key.

GetStringAsync(IDistributedCache, String, CancellationToken) GetStringAsync(IDistributedCache, String, CancellationToken) GetStringAsync(IDistributedCache, String, CancellationToken) GetStringAsync(IDistributedCache, String, CancellationToken)

Asynchronously gets a string from the specified cache with the specified key.

Set(IDistributedCache, String, Byte[]) Set(IDistributedCache, String, Byte[]) Set(IDistributedCache, String, Byte[]) Set(IDistributedCache, String, Byte[])

Sets a sequence of bytes in the specified cache with the specified key.

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

Asynchronously sets a sequence of bytes in the specified cache with the specified key.

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

Asynchronously sets a sequence of bytes in the specified cache with the specified key.

SetString(IDistributedCache, String, String) SetString(IDistributedCache, String, String) SetString(IDistributedCache, String, String) SetString(IDistributedCache, String, String)

Sets a string in the specified cache with the specified key.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) SetString(IDistributedCache, String, String, DistributedCacheEntryOptions) SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Sets a string in the specified cache with the specified key.

SetStringAsync(IDistributedCache, String, String) SetStringAsync(IDistributedCache, String, String) SetStringAsync(IDistributedCache, String, String) SetStringAsync(IDistributedCache, String, String)

Asynchronously sets a string in the specified cache with the specified key.

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

Asynchronously sets a string in the specified cache with the specified key.

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

Asynchronously sets a string in the specified cache with the specified key.

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

Asynchronously sets a string in the specified cache with the specified key.

Applies to