1 dataabstractions IDataValueCacheTT
RaidMax edited this page 2023-05-20 22:09:21 -05:00

IDataValueCache< TEntityType, TReturnType> Public interface

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph Data.Abstractions
  Data.Abstractions.IDataValueCache_2[[IDataValueCache< TEntityType,TReturnType >]]
  class Data.Abstractions.IDataValueCache_2 interfaceStyle;

  end

Members

Methods

Public methods

Returns Name
Task<TReturnType> GetCacheItem(...)
void SetCacheItem(...)

Details

Methods

SetCacheItem [1/2]

public void SetCacheItem(Func<DbSet<TEntityType>, CancellationToken, Task<TReturnType>> itemGetter, string keyName, Nullable<TimeSpan> expirationTime, bool autoRefresh)
Arguments
Type Name Description
Func<DbSet<TEntityType>, CancellationToken, Task<TReturnType>> itemGetter
string keyName
Nullable<TimeSpan> expirationTime
bool autoRefresh

SetCacheItem [2/2]

public void SetCacheItem(Func<DbSet<TEntityType>, IEnumerable<object>, CancellationToken, Task<TReturnType>> itemGetter, string keyName, IEnumerable<object> ids, Nullable<TimeSpan> expirationTime, bool autoRefresh)
Arguments
Type Name Description
Func<DbSet<TEntityType>, IEnumerable<object>, CancellationToken, Task<TReturnType>> itemGetter
string keyName
IEnumerable<object> ids
Nullable<TimeSpan> expirationTime
bool autoRefresh

GetCacheItem [1/2]

public Task<TReturnType> GetCacheItem(string keyName, CancellationToken token)
Arguments
Type Name Description
string keyName
CancellationToken token

GetCacheItem [2/2]

public Task<TReturnType> GetCacheItem(string keyName, IEnumerable<object> ids, CancellationToken token)
Arguments
Type Name Description
string keyName
IEnumerable<object> ids
CancellationToken token

Generated with ModularDoc