{"name":"@envelop/parser-cache","version":"4.3.2-alpha-e4ba153.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-e4ba153.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":"e4ba153743a7091741ec351f8f56c7f1d707fc0e","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.3.2-alpha-e4ba153.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-jK2mG88zOXl5cFulG13ejm+mZ+X/pXqOpwEHjEmw+LgsPTDA5UncBSXq9+0THwOP1BX3kBPkvhG6pfYY5jwY9g==","shasum":"bf8560c1328666f4e27ed88730bf54fa1d006c51","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-e4ba153.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzL5P2J8GL8+T7JIFR15Fiv9cjJCK78/DiOwOsutCTLgIhAMCLc0tlWYRx7A2Vy3VqCA0YcaEfScoIaRwrlHIS901H"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib8QBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD5w/+KJlLKDqjkwoWv+0tm5HiBzUZ/HRV2oFapylDvjoKqBO0NZQz\r\nHzT/6sK70tBh9JD3EPK3BpGILryhyPt1O8dcazTskC7SVTaEu1C03hNIxysa\r\nSJGKLKcbF3wHLyvGJ3albdBd6Wf0B+JWSdFjUSNSwwPMIkz+i9Khf8rzZZQb\r\nQ/sXKIAyFUh0gLuWLP8/q8rdFw6q0mio1ZOJg6ryfLn88tzByVwITf15gB1R\r\nEWXpKZxXUEY1bkdv+nk0mJxqH+a1qD0YE56OECHcIAJiJlM5BLbVKmJJNcn4\r\n4EcDIOMvPNqFGzQ4o9EkRAGpz/lyg5Y+Wk+kCOhQ061wxDPETT1vvmU3Vp1x\r\nFeqZBsxhYoD7foDKQQk90KfY8bKMJlmDx7bB44VVZbWymPu0VoPOXFLXlSqN\r\nZhQCsGBNq0SynLNy8lrB1q/DXVh7EkyHg5DJMwbBA9rl/IZZM72iQPZgJOlh\r\ndcxeeVjEBgjbrfxPuScHKs24mtvwxT3b9RF8VzfFdZbVTwHh8aQzdilEcjUc\r\nLN3t5OwrL8ml7RyNxC5uAqHQKGchAxp4YDA6ayOKwkGDQ+DxC22Jqk+Ur31u\r\np6Q7t8YLtJTauXszDqlsdxFx0N3FF6ll1wD/AhCjaA4tleW9ZRufIau/1gD1\r\nwgU72LbyUpbwKfjp+6LaZYWSEAd+hmIn2Og=\r\n=lx81\r\n-----END PGP SIGNATURE-----\r\n","size":1584,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-e4ba153.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.3.2-alpha-e4ba153.0_1651491841580_0.9502998276487591"},"_hasShrinkwrap":false,"publish_time":1651491841702,"_cnpm_publish_time":1651491841702,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}