Class TableWithCache<T>
Represents a table constructed with a IPostgrestCacheProvider
public class TableWithCache<T> : Table<T>, IPostgrestTableWithCache<T>, IPostgrestTable<T>, IGettableHeaders where T : BaseModel, new()Type Parameters
- T
- Inheritance
- 
      
      Table<T>TableWithCache<T>
- Implements
- 
      
      
      IGettableHeaders
- Inherited Members
Constructors
TableWithCache(string, IPostgrestCacheProvider, JsonSerializerSettings, ClientOptions?)
public TableWithCache(string baseUrl, IPostgrestCacheProvider cacheProvider, JsonSerializerSettings serializerSettings, ClientOptions? options = null)Parameters
- baseUrlstring
- cacheProviderIPostgrestCacheProvider
- serializerSettingsJsonSerializerSettings
- optionsClientOptions
Properties
CacheProvider
Represents a caching provider to be used with Get Requests.
protected IPostgrestCacheProvider CacheProvider { get; }Property Value
Methods
Get(CancellationToken)
public Task<CacheBackedRequest<T>> Get(CancellationToken cancellationToken = default)Parameters
- cancellationTokenCancellationToken