Table of Contents

Interface IDocBodyCache<K, TDoc>

Namespace
Tlabs.Data
Assembly
Tlabs.Data.dll

Document cache for TDoc.

public interface IDocBodyCache<K, TDoc> where TDoc : BaseDocument<TDoc>

Type Parameters

K
TDoc
Extension Methods

Properties

DocProcessorRepo

Document processor repo.

IDocProcessorRepo DocProcessorRepo { get; }

Property Value

IDocProcessorRepo

DocRepo

Product entity repository.

IRepo<TDoc> DocRepo { get; }

Property Value

IRepo<TDoc>

this[TDoc]

Gets or sets a document body object from the cache with specified tmplDoc as key.

object? this[TDoc tmplDoc] { get; set; }

Parameters

tmplDoc TDoc

Property Value

object

Remarks

  • Setting a value of null evicts any entry with key from the cache.
  • Setting a value of of TDoc converts the document into its body object (using DocProcessorRepo.GetDocumentProcessorBySid(...))).

Methods

WarmUp()

Perform cache warm-up.

bool WarmUp()

Returns

bool