graphql/dataloader

[QUESTION] caching period

Open

#290 建立於 2022年1月19日

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

描述

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

貢獻者指南

[QUESTION] caching period · graphql/dataloader#290 | Good First Issue