GetCachedOrRetrieveAsync<T>(IRepository<T>, string, IApplicationCache)

public static async ValueTask<T> GetCachedOrRetrieveAsync<T>(IRepository<T> repository, string id, IApplicationCache cache) where T : Redakt.Data.DocumentStore.IEntity
Returns:
ValueTask<T>

Parameters

repository IRepository<T>
id string

Type Parameters

GetCachedOrRetrieveAsync<T>(IRepository<T>, IEnumerable<string>, IApplicationCache, Func<T, bool>)

public static async ValueTask<IEnumerable<T>> GetCachedOrRetrieveAsync<T>(IRepository<T> repository, IEnumerable<string> ids, IApplicationCache cache, Func<T, bool> filter) where T : Redakt.Data.DocumentStore.IEntity
Returns:
ValueTask<IEnumerable<T>>

Parameters

repository IRepository<T>
ids IEnumerable<string>
filter Func<T, bool>

Type Parameters

In this article