graphql/dataloader

[QUESTION] caching period

Aberta

#290 aberto em 19 de jan. de 2022

 (1 comentário) (1 reação) (0 responsável)JavaScript (556 forks)batch import
help wanted

Métricas do repositório

Stars
 (12.520 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador