graphql/dataloader

[QUESTION] caching period

オープン

#290 opened on 2022/01/19

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (556 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (12,520 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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