{"name":"@envelop/parser-cache","version":"4.2.0-alpha-e0e4d8e.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.2.0-alpha-e0e4d8e.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":"e0e4d8e8ee5295d6fdb54fabf84b2dfc74bd4497","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-e0e4d8e.0","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-gGCtQGZJRZxViA8XGxI3sVZ+OedQOZGjmtSFmgL1gEOAp109ZyhQLhkyuchZovGgQi1+JRe69uZfPFsaXyw7QQ==","shasum":"040e584e1ef3b5fdfbcfcba2445946c9513deaae","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.2.0-alpha-e0e4d8e.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRDSlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpd4w/+MuhZkzzpf+zhfIyPZM35Mp7/OR7eh3acHBLYJV27gP9uvb9c\r\nbzs92uIC5fVdFDt1KtGAI9T2716caPgW41oTuCRO8lupszGSnOcc9qS/UH2r\r\n4HwyT+803I368s/yuHwN6MbfRFqUfyXwRYXfK/gXZ/KtOjxfQKNE5VI9+XTj\r\n7v2ZaALpCsFlvvSD1xIhkCmccVphmz+qs5JFBHWSlCbFJpIbB+MOaXiGnwse\r\nadZqopPVuWhodUHPueMrywPfVVjtt7b4kyOjmbf3GTyUi51PpYyjlqpSiJI0\r\nmDXiuV34Zea9zaJnjb++3Tk/l7r2zO7qvG0dIXC++dSo4JjL4n+O4ILodK/v\r\ngsA+fi6K9qSUcA1yUV73X9cLqdcqqQFXISUpHYERel99YWno6fNwTmvtsOES\r\nsjsnyi2EC5WC90fG0ma+RBczpjTbzO6I72AgWPWZGkN4EDhfLijMiYKGCGvO\r\ntJuVXsBu/8K9qoPHDNmAT65ZTfQqMJYBaxx7fsxcOtgdIhqmhRki6v4vMeHp\r\nF3YONk3EXOvPV6jiBJdeLhmLjk4ot4x21qBzlmsvuKaYNYubnfeobnnXCeWJ\r\nBKQpdtcDNTX0qF3k2fjUSRK7yFBVb5aW5hNfdaDq9xNasTmt3LNb/QiQdbu8\r\njgPV45Pc3UGzD1RMzt14T9Fz8mDvTLVR8SM=\r\n=15XF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIADFI1QRQ6vmuxqvlhZ9AyMNZ85kt2j1ylHhz+II9yfyAiEA50jfn1acnRLw/nIS5od3jiUGmzHpsDbX3yQM+KOXhkc="}],"size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.2.0-alpha-e0e4d8e.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-e0e4d8e.0_1648637092927_0.18714042259429942"},"_hasShrinkwrap":false,"publish_time":1648637093449,"_cnpm_publish_time":1648637093449,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}