{"name":"@envelop/parser-cache","version":"5.0.0-alpha-fc40ee4.0","sideEffects":false,"peerDependencies":{"@envelop/core":"3.0.0-alpha-fc40ee4.0","@graphql-tools/graphql":"0.1.0-alpha-33fb2950.0"},"dependencies":{"lru-cache":"^6.0.0"},"repository":{"type":"git","url":"git+https://github.com/n1ru4l/envelop.git","directory":"packages/plugins/parser-cache"},"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"license":"MIT","main":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.ts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./*":{"require":{"types":"./typings/*.d.ts","default":"./cjs/*.js"},"import":{"types":"./typings/*.d.ts","default":"./esm/*.js"},"default":{"types":"./typings/*.d.ts","default":"./esm/*.js"}},"./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":"fc40ee4f7333ae09fb53c2a18e5bc0378183e06c","description":"This plugins adds simple LRU caching to your `parse`, to improve performance by caching the parsed result.","bugs":{"url":"https://github.com/n1ru4l/envelop/issues"},"homepage":"https://github.com/n1ru4l/envelop#readme","_id":"@envelop/parser-cache@5.0.0-alpha-fc40ee4.0","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Af2GPZye7a0yHe7uMjdLQUNgmZjykHco0AcUSkB1ps8ouSKeGluXI/rAS5OZ8pwy56DgL63aDcS2lsgZ3G7iCw==","shasum":"5eea2de9811869f48ba03431046fec95ebef3ab5","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-5.0.0-alpha-fc40ee4.0.tgz","fileCount":6,"unpackedSize":5652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/EQE+DcyARKvIFZAv9Atp+47F3kqcxhq9kP5V2y3EDgIhAMcF/wjjqwR2xxIHR8aOB//5+0sfatzyz05hRHAm89uA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5DPrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbNxAAo4Xtf+8RXylg9UgOEH7ElL2WTPfwtczHGXVZXEIZv58n7ykk\r\nNiTbxUmGFuoKcWOsxqtHpOFbsfVn7DNA66VlO8SVjOcbPmiT99/vNuttjvMY\r\nHCKBAeLbtg63VzYOws09jbrJHdXFeXmTM7dj0T6woLPYTkP5JfGyUm5rbN/4\r\n7rjfltgzcBYI3xyZDKxqT+8/XZ73M/YFnSY3C2XZaLxuwRApfP1/wlT/qfF0\r\nJ5NljYnSoFMQk4qNH0rzyB1uZjLIpAmI4Ayyo7+dz4srYRlYqXdUWnvuZ7Ce\r\nWVjDwSF4BkutMJVvN38O/Bw3qL13aMMpsZjQuGnH+nZdsSzn/efrTXUFaGRX\r\nDQSo9flyyp5/sExumqTev7lVDjurohQYeQayKrDnLDtRKX34Nqgnvd5Mm8B5\r\nh1y6919cufEyZjSN0R9e4MK4z7bjpbH5IfTRVUZMLO4AB5yJThewN237KtAG\r\ncti0BBvEGRjAz0MisqK7jKHFSX08ctxneX0QI1E8XE/IWuVwKXGF0AiMbfAL\r\na5nrWl9HInQyiPdjuthuOfgdI1WYK1thxpujt34qPtIDQ+TGGP8jdE6GoL6F\r\nm92UKNPLpCuPWeM7rQoxRpxMPk1A+OXIHKQnuSsfYnhTc2s6JR/lwTjwUNCu\r\nUAeOTnyosEojRfpV8t36muuKvPVVpmAZV80=\r\n=77yE\r\n-----END PGP SIGNATURE-----\r\n","size":1668,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-5.0.0-alpha-fc40ee4.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_5.0.0-alpha-fc40ee4.0_1659122667384_0.5679629561889037"},"_hasShrinkwrap":false,"publish_time":1659122667634,"_cnpm_publish_time":1659122667634,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}