{"name":"@envelop/parser-cache","version":"4.4.0-alpha-aca44e1.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.4.0-alpha-aca44e1.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":"aca44e1b3e6b9005fffa22790d84b72cbefab85c","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-aca44e1.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-AymHxP30MI6/V7daL/S6dm9nx9zP1ZtPgK9fLu2zrzu9B8Wk3MhFAZQx3uTxq+tVmA0I9bMaUGE+fcQR46zBFg==","shasum":"ca55c8481ae53f69de034b582f125467c9b3e0b8","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.4.0-alpha-aca44e1.0.tgz","fileCount":5,"unpackedSize":4655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTxzErQR7na7SPLnLFuUjAeT0RmCgcpIdyG1cFzhVcPgIgBB9VniSn0tkUf8Hs4wE9bsfIKnQxxhxfg1bD8YrCSvs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVUCMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJgA/8CnR0lIyXFK0LjiwLRW5eaQMQobV+uK3G4Jj9XQY5Lbk2VJkD\r\nU7KMuy6amTnDuvyc9PRgih17wR5x6ZmjTXPrPKUPmkE5Nuq80MYTtd53zd2q\r\no/cREsryA0tmKNklUByrS5G8QzCI8aDNwvn1nYpmyByeimC5/DJboBNj15yc\r\nmTWcraswrkqAUsqxn9BktlWGSgmbDa6bxLd/5sPlwj7kb9s4L5Wb5jZq/wQg\r\nE1CY3XJTXSFdkZSGnFU9whQadiiZEMlRHwsnU6AkEbeVy4vshTiQetxu39oO\r\nSCqjBy1Fjd3/b6zoGt/IWOzBNgkLjnX4e+YCnGK5sDGA2/YGgsOS8cL1pk/H\r\n60B5RgWkktNZ/iGxZUn0XNPPze7AfiKwrkIMsX+75i9dYi91x3ls4THQZQwg\r\nwJ20rpbZakN2VOdLjUcbN9iY7ONw7Re4Cmk5xKxUpC+CO/ZwjUCyEhuppYB1\r\n0OCvvuf5htyxa/2hOC/VVyzljed7tJ4s5ObdvRrKg928hghgZYaS6uNVl19s\r\nhrlUKuHcwL57RrOZjQV7J+OuJMdLHx7qbGzU5vtQthorCUIn1aatF4wMCnPm\r\nGfDztQaYiYMB35FvHxztcgja6+OPV78UE8zpogq3MwYivmTFEv5AgRm/ePwL\r\nYLsjLeVR6kC1ibeqZiK7IWeu6XI6lbpZZpU=\r\n=ujsc\r\n-----END PGP SIGNATURE-----\r\n","size":1450,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.4.0-alpha-aca44e1.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-aca44e1.0_1649754252464_0.8672147338551337"},"_hasShrinkwrap":false,"publish_time":1649754252593,"_cnpm_publish_time":1649754252593,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}