graphql/dataloader

[QUESTION] caching period

Offen

#290 geöffnet am 19.01.2022

 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)JavaScript (556 Forks)batch import
help wanted

Repository-Metriken

Stars
 (12.520 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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()?

Contributor Guide