ICheckSessionResponseCache Interface
Caches formatted check-session results keyed by the response's cache key.
public interface ICheckSessionResponseCacheDerived
↳ CheckSessionResponseCache
Methods
ICheckSessionResponseCache.GetOrAddAsync(object, Func<Task<IResult>>) Method
Gets the result for the key from the cache, or produces and stores it via factory.
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> GetOrAddAsync(object key, System.Func<System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>> factory);Parameters
key System.Object
The key identifying the cached result.
factory System.Func<System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>>
Produces the result when the key is not yet cached.
Returns
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult>
The cached or newly produced Microsoft.AspNetCore.Http.IResult.