{"name":"@envelop/parser-cache","version":"4.4.0-alpha-c0cc559.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.4.0-alpha-c0cc559.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"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":"c0cc559d0d3af9ade72bf3adc3cd01a5701145c0","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.4.0-alpha-c0cc559.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-v4CjAOJk9T1WDi6h4sMVGGw0aSf4/XflYMssT9vBR6UwqEYUP/KGXIX8ca/U8DnBxdgHqWGNsRLUfl8f0bCl1Q==","shasum":"d4f5c0d3826b1c823fd13f222d2dfb58b98e2b1c","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.4.0-alpha-c0cc559.0.tgz","fileCount":5,"unpackedSize":4655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy3LR66R5I02tmKgJX7O5YqoBFeFQiFY0IKeRJU9lyOAIgIL2jrRm/F5S0PQjp7J8rm0RvTzMNL67Hja9uoKdy50w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVT60ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfwA//V9tduqR7YT9J1Q1tiERGIJEUy8KfTjUvBKgGlEkCifb1/iOi\r\nRskrcjsTHrPn8N59orZWxpAqPzQNktnNQXYVgpjeWfpvLFlGilmZMtpErJWE\r\nxKY0L0QrXNJbK968c/YBW4BvbE+lTQXjlOHT3v8OYISUdpnZaQVWx28EeghA\r\nmWxXLUJ0UF7Oav2HXTmm2isCJlmVX+CX6SYzn+NT+KpjU4UEPh7Y7QOoJa/s\r\n11I/9ujXQy20Y0b04iGbTxw9jPNiYhy3XLJs+yCGw1/Qyrjr8Gm1wZcVBeyc\r\n7ayNnGh4oQnl8DvteybuexVltaTAFEsAYaHc0wes2DGFOU4v/YWfrgffqpEH\r\nHspwx/gaqjtEZbPCIoYGqzWOz/ZSgVwb2MYut9CET7m1xPizh74XtlHJMQaV\r\nibLDSiC7Afl981TmK0yJ1svulXTbFXQUl81o/SlLeX8wfB/hYAtNaVsbvo4X\r\nWI5sslciK4ghdFBvcqDhl3OsrXZQpbkGqDJEV+4jIKVpPPrtRZIH+9Em901G\r\npy9WuGzyuW7SxXhavDWIL1YVI6SZ2yI9twuwLLf8titmq97biwSyNS6Vb1rS\r\nEARrQq8R7P12eqdjLjC5Lgra7r+wcd05XOoHunRmoLGEjvxCRTDHWmbK8FWj\r\nmtMUSfRD1rEjpeVe6ZqtaMJcYXElgfUV9u0=\r\n=w2xX\r\n-----END PGP SIGNATURE-----\r\n","size":1452,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.4.0-alpha-c0cc559.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.4.0-alpha-c0cc559.0_1649753779974_0.4175311609431578"},"_hasShrinkwrap":false,"publish_time":1649753780122,"_cnpm_publish_time":1649753780122,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}