This interface must be implemented by Redakt caching service modules. The module can then be registered with the DI container.

public interface IApplicationCache: IDataProvider
Extends:
IDataProvider

Properties

CanClear

Methods

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

Extension Methods

RemoveAsync(IApplicationCache, string)
SetAsync<T>(IApplicationCache, T)
SetAsync<T>(IApplicationCache, IEnumerable<T>)

Implemented by

InMemoryCache 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.