This is the default in-memory cache module implementation. This module gets registered with the DI container automatically if no other cache module has been registered.

public sealed class InMemoryCache: IApplicationCache, IInitializableProvider
Inheritance:
ObjectInMemoryCache
Implements:
IApplicationCacheIInitializableProvider

Constructors

InMemoryCache(ILogger<InMemoryCache>, IMemoryCache, IServiceBus, IOptions<InMemoryCacheOptions>)

Properties

IsInitialized
Name
CanClear

Methods

InitializeAsync()
GetOrDefaultAsync<T>(string, T)
GetAsync<T>(IEnumerable<string>)
SetAsync<T>(string, T, Nullable<TimeSpan>)
SetAsync<T>(IEnumerable<KeyValuePair<string, T>>)
RemoveAsync(IEnumerable<string>)
ClearCacheAsync()