{"name":"@envelop/parser-cache","version":"4.2.0-alpha-0de750a.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.2.0-alpha-0de750a.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"tiny-lru":"7.0.6"},"repository":{"type":"git","url":"git+https://github.com/dotansimha/envelop.git","directory":"packages/plugins/parser-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"index.js","module":"index.mjs","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"exports":{".":{"require":"./index.js","import":"./index.mjs"},"./*":{"require":"./*.js","import":"./*.mjs"},"./package.json":"./package.json"},"readme":"## `@envelop/parser-cache`\n\nThis plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.\n\nThis plugins improves performance of parsing by ~60% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/parser-cache\n```\n\n## Usage Example\n\n```ts\nimport { envelop } from '@envelop/core';\nimport { useParserCache } from '@envelop/parser-cache';\n\nconst getEnveloped = envelop({\n  plugins: [\n    // ... other plugins ...\n    useParserCache({\n      // options goes here\n    }),\n  ],\n});\n```\n\n### API Reference\n\n#### `documentCache`\n\nSet this to pass in a cache instance for caching documents. By default a new LRU cache is created using default `max` and `ttl`.\n\n#### `errorCache`\n\nSet this to pass in a cache instance for caching errors. By default a new LRU cache is created using default `max` and `ttl`.\n","readmeFilename":"README.md","gitHead":"0de750a57033d598f37e819005ce65b4140f8e70","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/dotansimha/envelop/issues"},"homepage":"https://github.com/dotansimha/envelop#readme","_id":"@envelop/parser-cache@4.2.0-alpha-0de750a.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-2Db46Q4VzotOSLUaycpwupP2UP9Q3OKs5DN3kIUblh5RyW8Erm56hGDXZPaV4RswLDIj/z8ArdQGqG5x/MlVHQ==","shasum":"dd0518aa26094d8352e3880686af512603532e8c","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.2.0-alpha-0de750a.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRDoDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRvA//Vyaa7VMmKRGvfb5IWH+yVQ51UQ4WcBjlORH2v4ZFn7nVk8kc\r\na5OLlfp7sxrmaC8M6HpMv34vRL/99RXtw9pQCZnTZOfUcqQtpUxDiDJni9Ve\r\nTRLPS/4Zuswi9XC7FFsqRTjpLuh37es8m3UucS/KhJm8IjY4JXMFzy9YYbQF\r\n9N/0RkUAv7V/c5YGlL1a1jArSj6EmbAP3nxFhV58hH4RaAsEfQWhs+2+CrYN\r\ns83/oat7qZbLv88PzrMw9eNyxgTslCK8KrLMfzr5qcZ6+wUNY/fP+3ZhtOtI\r\neUIMG2023svEE7T+RwdDjugF9K0xSwZ0MqncCuW2NPcIaEceAf8YyVIE14oR\r\nTslC4UCpH/S8+nXh5q1a+jZ+SvECseIzojvXELjaGUt+EH+jQn+x1iXNZqMU\r\nYjVMx+JRRFunXLBFPj8r9Mci4c4R7ityHiqiIthJhlg4ggNF63zzbjh9BnIK\r\nvSxS5yC2bfQionXTTy/OaV0tGA/nZBoXVP3ytaoG/+QsfIWsSTryYLFaSP7J\r\nmDpEeJ/JgkvQipOTM/NUVBwuTQg4f7QVFSNUu69AVBEe+7l9s25LnM5Iv8+8\r\n6weyVXFILPJRsf9qb8drTIgig0AqaOJlcZ0KeRhI7za0oA5JmqAtfg1OzaZd\r\nPIyz11A6JX+ITDBOH62nzWxalYwcpVfzRS0=\r\n=SLe2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhSg8Wkx6guyAvkVQi3+JWKRZ2W/sKH9z3P8RXMh9ndAiBExcBcTV9BMcjLi2iTpy6iyc/itxHcALvzt1q/jle7nQ=="}],"size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.2.0-alpha-0de750a.0.tgz"},"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parser-cache_4.2.0-alpha-0de750a.0_1648638467747_0.263647364022467"},"_hasShrinkwrap":false,"publish_time":1648638467878,"_cnpm_publish_time":1648638467878,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}