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

贡献者指南