{"name":"@envelop/parser-cache","version":"4.2.0-alpha-8667975.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.2.0-alpha-8667975.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":"8667975bd34aee077e43f9de9dd5af1e1634792f","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-8667975.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-//XlGqlbxUekSW7WhIAm6f1XKwhmn1tyxJZipi648k486DyN2WDhaYM7Q7lGhNuQS7shCPX6Bc/hlde4pLe9TQ==","shasum":"8d676133de5aa7774f12b6aa5456022899c524b9","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.2.0-alpha-8667975.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2NpGFPOPJaqz+SMYNjor2f1joN1VYlOZihiBvZRXEmQIhAPTyRrZsHFx1PqPn34mw82QKbFvcgjjEinBiWG2o39uo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRXZAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqg8Q/8C6K2UP10rDSe2i1DeHOYQatkx284/JFiq2xWHVXfNkyj7qgk\r\ngh/YX3lIcW7yaB0/iL+0y1mfQlPXNUYYSNYwlCtqq4YIC7uaT8dOBBRFnxha\r\nXT3L4MMQ/cftP1v/cXOTh+lqqwvT/1SJlTMJO35xQCHkVBvZoclwitS230Mo\r\nq8I+bL9qixC4XSmMSmh+FO9iDVwJK73hgGtUWJ5k0sq5Ivkncg2pFrueIH1A\r\nHuwlBM/WusWin3cj8AFbnn8C0hJK5y+hf5AH5ML26Smlf4RSQN55aZ1ToTG1\r\nOrs+Zvi6foUYSagEBx871+bJdh5citIsgMXJEmXOmC7/vo/JxaCi6+dlqO5C\r\n5Hj2PNMugLNOQ/bHModBdXHonT/yrNBbN/4VG2ddUnjjleKb3P42HhDTIg8t\r\nnQk4nzKDqJU7qig2ovjrT778vlfflwU4NiODHEc6cySltrE0gHJwE9y4xHYx\r\n5aAgEwZ10qBfkTbf6nLZxEn83o/IP67qDVEzLoGyjliHXiy1xFg5YfW8zHip\r\nI1XeKxboWZ3gmGh14cokH3KPL4EQeL7SlJ7jeuZX4XSGNK1j+IVmTyUhKJHe\r\nUmsOXY4iH2KxS5OVmylRygrnYa325m8AeyJM5jqJcA8HL0B0wjIdQpSZYjAg\r\nkSUk8BeQuvRVkUaODEMcn3pPQHQN+L/AONs=\r\n=h/Ym\r\n-----END PGP SIGNATURE-----\r\n","size":1586,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.2.0-alpha-8667975.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-8667975.0_1648719423927_0.6825778864845029"},"_hasShrinkwrap":false,"publish_time":1648719424062,"_cnpm_publish_time":1648719424062,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}