graphql/dataloader

[QUESTION] caching period

Open

#290 建立於 2022年1月19日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)JavaScript (556 fork)batch import
help wanted

倉庫指標

Star
 (12,520 star)
PR 合併指標
 (平均合併 5天 2小時) (30 天內合併 1 個 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()?

貢獻者指南