Microsoft.Extensions.Caching.Distributed.MemoryDistributedCache
Implements IDistributedCache using IMemoryCache.
Creates a new MemoryDistributedCache instance.
public MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor, ILoggerFactory loggerFactory)
Creates a new MemoryDistributedCache instance.
Gets the specified item associated with a key from the IMemoryCache as a byte array.
Asynchronously gets the specified item associated with a key from the IMemoryCache as a byte array.
Refreshes the specified item associated with a key from the IMemoryCache.
Asynchronously refreshes the specified item associated with a key from the IMemoryCache.
Removes the specified item associated with a key from the IMemoryCache.
Asynchronously removes the specified item associated with a key from the IMemoryCache.
Sets the specified item associated with a key in the IMemoryCache as a byte array.
public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default)
Asynchronously sets the specified item associated with a key in the IMemoryCache as a byte array.