Skip to content

What data is cached in Atlas, and what are the details. #787

Answered by zabeen
benbelow asked this question in Q&A
Discussion options

You must be logged in to vote

A package called LazyCache is used extensively to provide in-memory caches.

Two types of cache length are configured: Transient and Persistent

Transient Cache

  • Counter intuitively this cache has an incredibly long lifetime (~10 years)
  • It is "transient" as it will only be registered as a transient dependency in DI - meaning a new one is created whenever we need it
  • This cache is used for caching configuration values for which we need the data to be consistent across a request, even if it is not difficult to re-calculate
    • e.g. which matching database is currently active

Persistent Cache

  • This cache persists across search requests, and expires once per day
  • It is used for quickly looking up…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zabeen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants