{"name":"@envelop/parser-cache","version":"4.6.1-alpha-20220824152235-afd061e6","sideEffects":false,"peerDependencies":{"@envelop/core":"2.5.1-alpha-20220824152235-afd061e6","graphql":"^14.0.0 || ^15.0.0 || ^16.0.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.cts","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.cts","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":"afd061e65f308371b3a31174c1ccc2a408ddffea","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@4.6.1-alpha-20220824152235-afd061e6","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Tnehndfv3ZqyQG4HH+f750PIWqmwo58vkrXcjmvY4g8/XNsfphV9TuBNXJvpV5wd/DRpV7Hcx3v3xZcC4X1elQ==","shasum":"274acaae88bdcb087179816a57071731d445d580","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.6.1-alpha-20220824152235-afd061e6.tgz","fileCount":7,"unpackedSize":6117,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkqaOGU8R+zeVgUhj6q54vipFUD+U0IjCELuIQ4252RQIhAOHyQdYs4W6Ck624wpKoMZs9FQ9JAvqZLe1cvArYu16/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBkJrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ/hAAjxk7aLSbfLi4xvjmaeH6LPS57uBpqlpPIeNfmZ6ZC+LdjIvc\r\nd2uul0qEnCMu1nq2+h+8SGHajTJqHVQxtCFZBNVyQ2DdHi2XFa2kBM0Z5Nm5\r\nt19d/YLOUhQ5wcOZ9jSovQH20rKulpXYlUQ/P+VJJcyI+0RfI3cvbVitqUc8\r\nVQIK3OpZ0wHK286LUqlQnNqW7PtE3l3v+7oE+hHjexBnCeR6ZNNRImEUiXcp\r\ntlfzrHPguHwDlKO0gQM3yyqRFWFXt60IpbLfV7LN4RWrXVx3YYXtuWEcqD+W\r\nHuZ7qltlLI10RH56/zuxrwYh88FpPiUukdfSO/5Sp8qnNiqck3FlTs1i6APh\r\nSIpeQ2H1ZyPij5XDTKk5c9C1SK+fFZN7TMJ/aj8RFpUUFAFyXgupbg4MhcMj\r\n57tF2r9Zx1Cbj4iq+UNtS3xlK+JHNyYXnMnQBCDBwXjSA6lgBf5fkx6uk2L5\r\nrdefa628J7dDdtiouLE/+MuWTFEabDSKw9d9ly0exriHghZdV8CT9YD+dnjD\r\ngMFBWEXwrznCIiT3wLfdWOVDnK9cKAzwULZInpMtGS5ozaymxDzX8BV6EKJ9\r\nXwmJ6dNcsZjGQzJvTgM42IIYROOFa20tm2I5sz5/7AB5vYTjidQi3VKJReN4\r\nOXVn+JbxIJUhZ7vi3YuFcmG6PkGj+5v1i0Q=\r\n=rluS\r\n-----END PGP SIGNATURE-----\r\n","size":1715,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.6.1-alpha-20220824152235-afd061e6.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.6.1-alpha-20220824152235-afd061e6_1661354603005_0.45366867682636536"},"_hasShrinkwrap":false,"publish_time":1661354603140,"_cnpm_publish_time":1661354603140,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}