graphql/dataloader

[QUESTION] caching period

Aperta

#290 aperta il 19 gen 2022

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

Metriche repository

Star
 (12.520 stelle)
Metriche merge PR
 (Metriche PR in attesa)

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