Table of Contents

Class TableWithCache<T>

Namespace
Supabase.Postgrest
Assembly
Supabase.Postgrest.dll

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
TableWithCache<T>
Implements
Inherited Members

Constructors

TableWithCache(string, IPostgrestCacheProvider, JsonSerializerSettings, ClientOptions?)

public TableWithCache(string baseUrl, IPostgrestCacheProvider cacheProvider, JsonSerializerSettings serializerSettings, ClientOptions? options = null)

Parameters

baseUrl string
cacheProvider IPostgrestCacheProvider
serializerSettings JsonSerializerSettings
options ClientOptions

Properties

CacheProvider

Represents a caching provider to be used with Get Requests.

protected IPostgrestCacheProvider CacheProvider { get; }

Property Value

IPostgrestCacheProvider

Methods

Get(CancellationToken)

public Task<CacheBackedRequest<T>> Get(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<CacheBackedRequest<T>>