graphql/dataloader

[QUESTION] caching period

开放

#290 创建于 2022年1月19日

 (1 条评论) (1 个反应) (0 位负责人)JavaScript (556 个派生)batch import
help wanted

仓库指标

星标
 (12,520 个星标)
PR 合并指标
 (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()?

贡献者指南