graphql/dataloader

[QUESTION] caching period

Open

#290 opened on 2022年1月19日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)JavaScript (556 forks)batch import
help wanted

Repository metrics

Stars
 (12,520 stars)
PR merge metrics
 (平均マージ 5d 2h) (30d で 1 merged PR)

説明

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

コントリビューターガイド