DapperMaticResultCache
Namespace: MJCZone.DapperMatic.AspNetCore.Caching
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
The query results kept for the tables listed in CachedTables, in ResultCacheStore, the application's IDistributedCache, or memory.
sealed public
Contents
Constructors (1) | Methods (6)
Constructors
DapperMaticResultCache
Initializes a new instance of the DapperMaticResultCache class.
csharp
DapperMaticResultCache(DapperMaticOptions} options, IServiceProvider services)Parameters
- options (DapperMaticOptions}) - The options, which list the cached tables and may name the store.
- services (IServiceProvider) - .
Methods
| Method | Summary |
|---|---|
| InvalidateAsync | Makes every result read from a datasource stale: for a change DapperMatic did not make, to its schem... |
| InvalidateAsync | Makes the results that read a table stale: for a write DapperMatic did not make. |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
InvalidateAsync
Makes every result read from a datasource stale: for a change DapperMatic did not make, to its schema or to any table. DapperMatic's own schema endpoints do this when they change a datasource.
csharp
Task InvalidateAsync(string datasourceId, CancellationToken cancellationToken)Parameters
- datasourceId (string) - The datasource.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task
A task.
InvalidateAsync
Makes the results that read a table stale: for a write DapperMatic did not make.
csharp
Task InvalidateAsync(
string datasourceId,
string tableName,
string schemaName,
CancellationToken cancellationToken)Parameters
- datasourceId (string) - The datasource.
- tableName (string) - The table.
- schemaName (string) - The table's schema, or null for the table in every schema.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: Task
A task.
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()