Skip to content

CacheService.GetOrAddAsync method

Get our result from the cache, or build them in the factory func and cache the results for next time under the given key

public static Task<HttpResponseMessage> GetOrAddAsync(string key, 
    Func<Task<HttpResponseMessage>> getter)
parameter description
key cache key
getter factory function

See Also