graphql/dataloader

[QUESTION] caching period

Open

#290 geöffnet am 19. Jan. 2022

Auf GitHub ansehen
 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)JavaScript (12.520 Stars) (556 Forks)batch import
help wanted

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