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

    3.2.0 • 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.

    Keywords

    none

    Install

    npm i apollo-server-plugin-response-cache

    DownloadsWeekly Downloads

    38,680

    Version

    3.2.0

    License

    MIT

    Unpacked Size

    63.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • apollo-bot