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
Type Parameters
T
IEntity
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
Type Parameters
T
IEntity