Table of Contents

Struct CacheClient<T>

Namespace
The.Caching
Assembly
Instagile.dll

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

cancellationToken CancellationToken?

Returns

Task<CacheResult<int, int>>

SingleOrDefaultAsync(CancellationToken?)

public Task<CacheResult<T?, T>> SingleOrDefaultAsync(CancellationToken? cancellationToken = null)

Parameters

cancellationToken CancellationToken?

Returns

Task<CacheResult<T, T>>

ToListAsync(CancellationToken?)

public Task<CacheResult<List<T>, List<T>>> ToListAsync(CancellationToken? cancellationToken = null)

Parameters

cancellationToken CancellationToken?

Returns

Task<CacheResult<List<T>, List<T>>>