This package has been deprecated

Author message:

The `apollo-server-plugin-response-cache` package is part of Apollo Server v2 and v3, which are now deprecated (end-of-life October 22nd 2023 and October 22nd 2024, respectively). This package's functionality is now found in the `@apollo/server-plugin-response-cache` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.

apollo-server-plugin-response-cache
TypeScript icon, indicating that this package has built-in type declarations

3.8.2 • Public • Published

Response Cache plugin

This Apollo server plugin implements a full GraphQL query response cache.

  • Add the plugin to your ApolloServer's plugins list
  • Set @cacheControl hints on your schema or call info.cacheControl.setCacheHint in your resolvers
  • If the entire GraphQL response is covered by cache hints with non-zero maxAge, the whole response will be cached.

This cache is a full query cache: cached responses are only used for identical requests.

See the docs for details.

Readme

Keywords

none

Package Sidebar

Install

npm i apollo-server-plugin-response-cache

Weekly Downloads

63,131

Version

3.8.2

License

MIT

Unpacked Size

31.7 kB

Total Files

13

Last publish

Collaborators

  • apollo-bot