我正在使用 apollo-server-plugin-response-cache 包,像这样在服务器创建中设置
const responseCachePlugin = require('apollo-server-plugin-response-cache');
const server = new ApolloServer({
// ...
plugins: [responseCachePlugin()],
});
Run Code Online (Sandbox Code Playgroud)
但是,我在文档中找不到如何在事件发生时从缓存中删除或更新值,例如突变查询。这如何在负责此的 GraphQL 解析器中实现?
| 归档时间: |
|
| 查看次数: |
342 次 |
| 最近记录: |