{"name":"@envelop/parser-cache","version":"4.3.2-alpha-763ffe6.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-763ffe6.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":"763ffe6b6cc5c17b03d2c90313a4db83b3bbb6ac","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-763ffe6.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-jiMKUwg2kIS5rhOBY1MfZAscb0Vn2pWwOIWR1Sizw8T9IGDZLCaxvYDNlCLeyEkPRfuAs7sa01X8QX24XQFLVA==","shasum":"cda418718abfde62a4ffc5ea005dc0e622ace7f5","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-763ffe6.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTlUPqydQg32CGktIJ44gnjO+MBoxz0b19vyIBp1FS6gIgO1As5Y1IXLIwoPvW6H1t2kjor5IIjBDyDArqAZKjSTQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJie7a0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgDxAAkh4L0gAv7dHmYAVnhedEGjGuDUmIoKPc97FKRipEQgVE4p7R\r\nVZM04m8hdlVvExy5ALq//dYdXL4HZOTNAtfr9BT6pepGLXz5m0zzEbyViSwO\r\noyKBlTnUn79gnunP1N4uIC1n+wk+apRy6NZ1lvRLw52s0NrXQThy7qfWVjGk\r\n9uwtJGD4m46SdoVmQffLTmyhkg8sJEuNHWm296HuNWwJO3DBBR2YUXqnontX\r\nWPOzi2//pGoT9PTFNl95bI5JcFUGl8QERTJgkOf0xJNmrWNNgNvtbWJsaDc6\r\n0ruhz+b5fu+RhjDsrnPJ+XgvTYdei8Z8+bsH09l/RseH4B5FFdJMegkJqqGJ\r\nML7CVXqHf2lx7ojp5CxJJmB9+bgEcjtmkMXZmpHQZLXmAj9M+3NdQOrxI/Wr\r\nv3iOLB/VGKqBY2lIqGmbUcHgu8j4fuZyrsj2g+kf/4qXam/HV2iRBLQ7cSVs\r\nlOBAuokklpLvGbow7ZI2ZFzueJf/eVP2i/HZap0Jp+H+3LQ5RLjR+fHUtk8G\r\nRRra5wnHy/f5W6m9/d7njDk0qfadLBpdiHWRrvNnTbLbV79dvO/SuzEGd90i\r\nD+t1GdA3NeRG01qIP92fpSQChE4OnAXt+5topiKtfgFlaBEe5Rk45QPQS6jj\r\nt2PwgDCIaFEnhpJPCBO/EAKJFz/en1FJmgY=\r\n=Rkbu\r\n-----END PGP SIGNATURE-----\r\n","size":1583,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-763ffe6.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-763ffe6.0_1652274867881_0.29777194429132203"},"_hasShrinkwrap":false,"publish_time":1652274868052,"_cnpm_publish_time":1652274868052,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}