{"name":"@envelop/parser-cache","version":"2.2.2-alpha-ed3a9ee.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.6.6-alpha-ed3a9ee.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":"ed3a9ee931a7d3327b9a1e966edfec6ad090b651","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@2.2.2-alpha-ed3a9ee.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Qe50Hn6rfM2/I7sqwmlbQnOHT75c9AL4zlOKSgEd/i5kpjdmY0kgHn6NP/PXuNjUeMwcbLcYFetv10jGLieDXQ==","shasum":"78f23fc9d1e23bf64e022f4c203fe4a67f695b9b","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-2.2.2-alpha-ed3a9ee.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0ZiYCRA9TVsSAnZWagAAsrgP/Aq/65FK8yfL5hPCeVx5\nNFmzsM2ZRyIpwNLgtsahfaC1F8cbPnEirJGLZXyrko31DcNNyKFMsnM7BNvw\nEsi3zZedH84peIBADMbAT5J96Kz8n7/Tz0XAG6PEtUuoSdPNdw++Idnp90RH\nVpdC4MFzZDJRwGiB0FWyWm3iHpl9AEytzhCq0uwaIbyaYQ3Jjo0wqQmm4Tw8\ni4C4wgoiY4JNkItS9ZlOp1Dg7Sg7pvubUz5wPXUaD3QJWo1fCFMCM8EisU5d\nyZEaIYGbmFOp1ay57GWWY/PlrwMylLXcU2u6fl5jCckKqaonNQ5oN92G264M\nFN0/MINOnYhgO/s4pHw0WbCiVDLMvM21wpwbL3nAqReidKWcZftRopFh3kyh\nG6x+T1jzj09lGTR8DwL4S8KkPEdSSefiExnqdP5xpJ3KsoCHhor9c2afIpM0\nekm7Hx8jxpPlobQFm6K1D3ferNZqD6hTqfikzzbXEeDRIv3VPQpGcmS78Oiy\nSP2SvNUNNsT1EdEqnjUgtcyP0Qt8KBMafYiQoX7vrplhlFoNYnW59611ThSz\npvA0y2YWM3x7w9C58tS9wwM2IwTijTKRBwhFGlqcN1CVWMZEwawdxWEJitJz\nmL/Nh4dHp9y2eCKO8Va4EbXF1MwO3cUDUtJ39x9Kx+PSfeMet7DbZEJ1Rqg6\n3l7v\r\n=wArx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUxZJc5qnSeWmlY5kWB1J7QPcnit8/lzTqOx39Pz5u3AIgOdAM3Ae1/0tnVikjGR3KaflSeEQjubi4tg9zs2H/vRY="}],"size":1586,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-2.2.2-alpha-ed3a9ee.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_2.2.2-alpha-ed3a9ee.0_1641126040492_0.04367938971299612"},"_hasShrinkwrap":false,"publish_time":1641126040620,"_cnpm_publish_time":1641126040620,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}