-
-
Notifications
You must be signed in to change notification settings - Fork 44
datahelpers DataValueCacheTT
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph Data.Helpers
Data.Helpers.DataValueCache_2[[DataValueCache< TEntityType,TReturnType >]]
end
subgraph Data.Abstractions
Data.Abstractions.IDataValueCache_2[[IDataValueCache< TEntityType,TReturnType >]]
class Data.Abstractions.IDataValueCache_2 interfaceStyle;
end
Data.Abstractions.IDataValueCache_2 --> Data.Helpers.DataValueCache_2
Returns | Name |
---|---|
void |
Finalize () |
Returns | Name |
---|---|
Task <TReturnType > |
GetCacheItem (... ) |
void |
SetCacheItem (... ) |
-
IDataValueCache
<TEntityType
,TReturnType
>
public DataValueCache(ILogger<DataValueCache<TEntityType, TReturnType>> logger, IDatabaseContextFactory contextFactory)
Type | Name | Description |
---|---|---|
ILogger <DataValueCache <TEntityType , TReturnType >> |
logger | |
IDatabaseContextFactory |
contextFactory |
protected override void Finalize()
public virtual void SetCacheItem(Func<DbSet<TEntityType>, CancellationToken, Task<TReturnType>> getter, string key, Nullable<TimeSpan> expirationTime, bool autoRefresh)
Type | Name | Description |
---|---|---|
Func <DbSet <TEntityType >, CancellationToken , Task <TReturnType >> |
getter | |
string |
key | |
Nullable <TimeSpan > |
expirationTime | |
bool |
autoRefresh |
public virtual void SetCacheItem(Func<DbSet<TEntityType>, IEnumerable<object>, CancellationToken, Task<TReturnType>> getter, string key, IEnumerable<object> ids, Nullable<TimeSpan> expirationTime, bool autoRefresh)
Type | Name | Description |
---|---|---|
Func <DbSet <TEntityType >, IEnumerable <object >, CancellationToken , Task <TReturnType >> |
getter | |
string |
key | |
IEnumerable <object > |
ids | |
Nullable <TimeSpan > |
expirationTime | |
bool |
autoRefresh |
public virtual Task<TReturnType> GetCacheItem(string keyName, CancellationToken cancellationToken)
Type | Name | Description |
---|---|---|
string |
keyName | |
CancellationToken |
cancellationToken |
public virtual async Task<TReturnType> GetCacheItem(string keyName, IEnumerable<object> ids, CancellationToken cancellationToken)
Type | Name | Description |
---|---|---|
string |
keyName | |
IEnumerable <object > |
ids | |
CancellationToken |
cancellationToken |
Generated with ModularDoc