MemoryDistributedCache Class¶
- Namespace
Microsoft.Extensions.Caching.Distributed- Assemblies
- Microsoft.Extensions.Caching.Memory
Syntax¶
public class MemoryDistributedCache : IDistributedCache
-
class
Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Constructors¶
-
MemoryDistributedCache(Microsoft.Extensions.Caching.Memory.IMemoryCache)¶ public MemoryDistributedCache(IMemoryCache memoryCache)
-
Methods¶
-
Get(System.String)¶ Return type: System.Byte<System.Byte>[] public byte[] Get(string key)
-
GetAsync(System.String)¶ Return type: System.Threading.Tasks.Task<System.Byte<System.Byte>[]> public Task<byte[]> GetAsync(string key)
-
Refresh(System.String)¶ public void Refresh(string key)
-
RefreshAsync(System.String)¶ Return type: System.Threading.Tasks.Task public Task RefreshAsync(string key)
-
Remove(System.String)¶ public void Remove(string key)
-
RemoveAsync(System.String)¶ Return type: System.Threading.Tasks.Task public Task RemoveAsync(string key)
-
Set(System.String, System.Byte[], Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)¶ public void Set(string key, byte[] value, DistributedCacheEntryOptions options)
-
SetAsync(System.String, System.Byte[], Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions)¶ Return type: System.Threading.Tasks.Task public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options)
-