我正在寻找一种在 Nestjs + graphql 中实现缓存的方法。我已经通过阿波罗联盟分发了我的服务,因此使用微服务架构。
我想要,如果 graphql 查询、标头、参数中的任何内容发生变化,那么它应该获取新数据,否则从缓存中获取数据。
阅读 Nest js 和 graphql 文档,尝试阅读多篇文章,但无法找到如何实现上述内容。
有人可以帮忙吗?
caching microservices graphql nestjs apollo-federation
apollo-federation ×1
caching ×1
graphql ×1
microservices ×1
nestjs ×1