Interface IDocBodyCache<K, TDoc>
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
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
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 (usingDocProcessorRepo.GetDocumentProcessorBySid(...))
).
Methods
WarmUp()
Perform cache warm-up.
bool WarmUp()