graphql/dataloader

[QUESTION] caching period

Open

#290 ouverte le 19 janv. 2022

Voir sur GitHub
 (1 commentaire) (1 réaction) (0 assignés)JavaScript (556 forks)batch import
help wanted

Métriques du dépôt

Stars
 (12 520 stars)
Métriques de merge PR
 (Merge moyen 5j 2h) (1 PR mergée en 30 j)

Description

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

Guide contributeur