{"name":"@envelop/parser-cache","version":"4.0.0-alpha-2c9f1ce.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.0.0-alpha-2c9f1ce.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":"2c9f1ce10bfaff31f8dd7119205b21c391de24cb","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.0.0-alpha-2c9f1ce.0","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-euwUCSNtt2T63jpo7nS/Qkw5zCaGCBXPjALMqi1JOASj5AiHLS3oBQWHarZI50wiodf8KQz+dtoDEkQBS2naYA==","shasum":"bd7dc733dc9b9469b6d7fabd03ec8252acf596a3","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.0.0-alpha-2c9f1ce.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\nwsFcBAEBCAAQBQJh8+v+CRA9TVsSAnZWagAAtqQP/1ZnoeJ1auLnYFWRanGM\n4uznEZbeUKvoZKJT5+c0NX+ui5JvKdNAr+YiYUQAv9B70zUeqdPmEX2qp9DN\n5Kh0+nuPJCRPyaV1p3X7mSt3MLFSZs5dKdhOsy4E1xy5aj/0zjDn8TV5IHrB\nPHuQSVdfnOrXDNNGJqgfXVi0t0GeiYMwDEcA64t2jiscApgM7WwptZwkOZjj\ngYd210SzjuOsB4WiU1WmWnog39TZ5tso808dBZAY7w88D26AQRvkOi0YA3xk\n3vEuufi3WhL5ctJfpoFm+YnOpSfpDRhFcOtpTNys5ValE5USndX3ju3Estry\nxK0aQ6WWLq2bKWl1XtX3pcsIqLU9c7BX4dTgljcrvMGhwXYBQaEQgFmdHKyL\nQJtuB0ezz8KYNZjFp5xFeJsfqWdx0cycMR00QAx4yoj8MOUDiATAezS20Mgj\naxbTpUtSXD6qdIZ9HzPgxx3utS4zUqM+KQU2G8U5YzMkAS7HHnhtxOG4KpB7\nok/DJBMv1AcKcFD5dXkGSYveiJMCnvQzX7nlhuH5qNMpFfM04WsoaT3pxKvn\na3SRwf0GLuQvj7nwyMTqYHXPviVQ2GlU6SRb48PX0232U2QD6OFwzKu3joHE\nQhP3xHVYKXnf1TJQGRhs3HEMXaWCKG3j0GhXplguO5Fj5BD45LZ0nicUKr1K\nZI3d\r\n=0qmH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpAAGqlV90y4a2rjwCeq4CEQQSPnGo2D7Xa/NqDZM/KQIhAKcMi4Rck4GzK/Kj8vGKVgBsGTgBLakFvBEjJOGt07qc"}],"size":1582,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.0.0-alpha-2c9f1ce.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.0.0-alpha-2c9f1ce.0_1643375614168_0.39917567933708464"},"_hasShrinkwrap":false,"publish_time":1643375614302,"_cnpm_publish_time":1643375614302,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}