graphql/dataloader

[QUESTION] caching period

Open

#290 aperta il 19 gen 2022

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)JavaScript (556 fork)batch import
help wanted

Metriche repository

Star
 (12.520 star)
Metriche merge PR
 (Merge medio 5g 2h) (1 PR mergiata in 30 g)

Descrizione

Is it possible to specify a time wherein the dataloader can keep a copy of the data, but when the time has elapsed, it will automatically clear the cache?

Or we just need to have an external function (setInterval), which calls the [customDataLoader].clear() or [customDataLoader].clearAll()?

Guida contributor