{"name":"@envelop/parser-cache","version":"4.3.2-alpha-e3ced2d.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-e3ced2d.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":"e3ced2d0bfd347885527ad7d3240bfa2e7ae03b1","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.3.2-alpha-e3ced2d.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-RYYdIpxZwd+Nk5ZUiDaa+//HQ1xpZRlPMiK3DIIoDMWcNoKY/nFzagXSKly31w5aq/b8MOvlJxTkNwgggSa2pw==","shasum":"f584ba5bf3c9f7c1519bf2bc858c14c2a4911814","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-e3ced2d.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFRSHVBQJIFRETAB4h3lvvac2r0/AXHtOxYdEuk/CTSAiEA2tHL72vr/3hw07C3hqoqwtVoJunFUnxLOQkD7F48iZM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJibTVFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr8Q/+IfwhiDO1vE8QatvpwVvKZaGSvB/BosPIUvDVeDxfDfo6R25o\r\nSkSl5fiK1XnkH3+XsCgRWjcemD2KvLMhAG5nadSH+nurdjtxiH/yLYH/5/p5\r\nQ8sirlNy/9PggSZlh4ZFVVEdUVGRyWkOfK/XefZ1sO3UOc3236NOaWSYp6L5\r\nAWyOe5nQZ6KxMT+nl2LMhmO3WSmjNiOEhDFnTAXxVjuRNzpenJ2mPApfUU2R\r\nopDtKpQFH71NTmOYIoJXenO6KASmzV1AkfkaPFH0rm0hV0dgidzK3MKRV0NZ\r\nQRT2MJhwdgxKUU5zr/Bp/dBz78QaLSVfmoivZ/DZXDonpF1/yJ+UfOdYUxtc\r\nzysDxU4RoWXKQywzSiJG/CKuhWA47Mje2A+XXzcs0Z5PRu5shbnXSo/sh1go\r\n8TQDdihu7iSN0CZHVVCVW9wTiWEabwC3klFlxIb+MOkynQGBLRjUXmrUBmy+\r\n34v8rluJKiBdmUUNyNqR5k0MzKYG2babUygUnKlMmKdm8sgX+q1C3h8wLm8m\r\n3RpfJi+GisOknXxx/XxNsKi8nyuAOGypUtcoFw0u+tlEtinDqx61zejVMhJa\r\nkqh/EtHXi+svFEvtoiZ1gFy/9G9B73/TKULISN9Jx2/aTRRqbtCOTSs9pbWP\r\nbLn8COwHYKN87D9SpALrC7bAYuOer57ZaWM=\r\n=6svx\r\n-----END PGP SIGNATURE-----\r\n","size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-e3ced2d.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.3.2-alpha-e3ced2d.0_1651324228876_0.39306714976385315"},"_hasShrinkwrap":false,"publish_time":1651324229092,"_cnpm_publish_time":1651324229092,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}