Microsoft.Extensions.Caching.Memory.MemoryCache
Implements IMemoryCache using a dictionary to
store its entries.
namespace Microsoft.Extensions.Caching.Memory
{
public class MemoryCache : IMemoryCache, IDisposable
{
public int Count { get; }
public IEnumerable<object> Keys { get; }
public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor);
public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor, ILoggerFactory loggerFactory);
public ICacheEntry CreateEntry(object key);
public bool TryGetValue(object key, out object result);
public void Remove(object key);
public void Clear();
public MemoryCacheStatistics GetCurrentStatistics();
public void Compact(double percentage);
public void Dispose();
protected virtual void Dispose(bool disposing);
}
}