Struct CacheClient<T>
Query builder for obtaining cached results.
public readonly struct CacheClient<T> where T : IEntity<T>
Type Parameters
T
- Inherited Members
Remarks
There's not much logic here - CacheClient provides type parameters and preconditions to EntityCache, which does all the real work.
Methods
CountAsync(CancellationToken?)
public Task<CacheResult<int, int>> CountAsync(CancellationToken? cancellationToken = null)
Parameters
cancellationTokenCancellationToken?
Returns
- Task<CacheResult<int, int>>
SingleOrDefaultAsync(CancellationToken?)
public Task<CacheResult<T?, T>> SingleOrDefaultAsync(CancellationToken? cancellationToken = null)
Parameters
cancellationTokenCancellationToken?
Returns
- Task<CacheResult<T, T>>
ToListAsync(CancellationToken?)
public Task<CacheResult<List<T>, List<T>>> ToListAsync(CancellationToken? cancellationToken = null)
Parameters
cancellationTokenCancellationToken?
Returns
- Task<CacheResult<List<T>, List<T>>>