UNPKG

@envelop/response-cache

Version:

- Skip the execution phase and reduce server load by caching execution results in-memory. - Customize cache entry time to live based on fields and types within the execution result. - Automatically invalidate the cache based on mutation selection sets. -

65 lines 1.69 kB
{ "name": "@envelop/response-cache", "version": "7.1.3-alpha-20250306152819-85579bd42888d16682c982a98e5c72d4d7af6a19", "sideEffects": false, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0", "@envelop/core": "^5.2.3-alpha-20250306152819-85579bd42888d16682c982a98e5c72d4d7af6a19" }, "dependencies": { "@graphql-tools/utils": "^10.0.3", "@whatwg-node/fetch": "^0.10.0", "@whatwg-node/promise-helpers": "^1.2.4", "fast-json-stable-stringify": "^2.1.0", "lru-cache": "^10.0.0", "tslib": "^2.5.0" }, "repository": { "type": "git", "url": "https://github.com/n1ru4l/envelop.git", "directory": "packages/plugins/response-cache" }, "author": "Kamil Kisiela <kamilkisiela@gmail.com>", "license": "MIT", "engines": { "node": ">=18.0.0" }, "main": "cjs/index.js", "module": "esm/index.js", "typings": "typings/index.d.ts", "typescript": { "definition": "typings/index.d.ts" }, "type": "module", "exports": { ".": { "require": { "types": "./typings/index.d.cts", "default": "./cjs/index.js" }, "import": { "types": "./typings/index.d.ts", "default": "./esm/index.js" }, "default": { "types": "./typings/index.d.ts", "default": "./esm/index.js" } }, "./*": { "require": { "types": "./typings/*.d.cts", "default": "./cjs/*.js" }, "import": { "types": "./typings/*.d.ts", "default": "./esm/*.js" }, "default": { "types": "./typings/*.d.ts", "default": "./esm/*.js" } }, "./package.json": "./package.json" } }