public static IEnumerableAsync <TEntity> ByQueryEx <TEntity>(this ICacheEntites cache, string whereFilter, Func <IEnumerableAsync <TEntity> > onCacheMiss) { if (cache.IsDefaultOrNull()) { return(onCacheMiss()); } return(cache.ByQuery(whereFilter, onCacheMiss)); }
public static TResult ByRowPartitionKeyEx <TEntity, TResult>(this ICacheEntites cache, string rowKey, string partitionKey, Func <TEntity, TResult> onCacheHit, Func <Action <TEntity>, TResult> onCacheMiss) { if (cache.IsDefaultOrNull()) { return(onCacheMiss((e) => { })); } return(cache.ByRowPartitionKey(rowKey, partitionKey, onCacheHit, onCacheMiss)); }