1 datahelpers LookupCacheT
RaidMax edited this page 2023-05-20 22:09:21 -05:00

LookupCache<T> Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph Data.Abstractions
  Data.Abstractions.IUniqueId[[IUniqueId]]
  class Data.Abstractions.IUniqueId interfaceStyle;
  Data.Abstractions.ILookupCache_1[[ILookupCache< T >]]
  class Data.Abstractions.ILookupCache_1 interfaceStyle;

  end
  subgraph Data.Helpers
  Data.Helpers.LookupCache_1[[LookupCache< T >]]
  Data.Helpers.LookupCache_1T((T));
  Data.Helpers.LookupCache_1 -- where --o Data.Helpers.LookupCache_1T
Data.Abstractions.IUniqueId --> Data.Helpers.LookupCache_1T

  end
Data.Abstractions.ILookupCache_1 --> Data.Helpers.LookupCache_1

Members

Methods

Public methods

Returns Name
Task<T> AddAsync(T item)
Task<T> FirstAsync(Func<T, bool> query)
IEnumerable<T> GetAll()
Task InitializeAsync()

Details

Inheritance

Constructors

LookupCache

Source code

public LookupCache(ILogger<LookupCache<T>> logger, IDatabaseContextFactory contextFactory)
Arguments
Type Name Description
ILogger<LookupCache<T>> logger
IDatabaseContextFactory contextFactory

Methods

AddAsync

Source code

public virtual async Task<T> AddAsync(T item)
Arguments
Type Name Description
T item

FirstAsync

public virtual async Task<T> FirstAsync(Func<T, bool> query)
Arguments
Type Name Description
Func<T, bool> query

GetAll

Source code

public virtual IEnumerable<T> GetAll()

InitializeAsync

Source code

public virtual async Task InitializeAsync()

Generated with ModularDoc