{"name":"@envelop/parser-cache","version":"3.0.1-alpha-a408263.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.7.1-alpha-a408263.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":"a4082635be13eea610770a63e654f89ce14e8131","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@3.0.1-alpha-a408263.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-ZfltmFpkOwbYA9eQcuIqrLrolZK0c0GUUwbDGOgg1co8SHRi27a5wgZRC6ZDSkSsZWEBGBJIGZtPqjVPsJjB8w==","shasum":"f26a611bea1c56b32f641242c73afa19bb6945ad","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-3.0.1-alpha-a408263.0.tgz","fileCount":5,"unpackedSize":4962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh29ZDCRA9TVsSAnZWagAAq3AQAJqe9F8YzLchXTEVmgx3\nS1NhtfZxjanxU0x36Zvofo+KhSR8c9EBeTL3FVnKLPIHo7i+wqE7LhBjkcvP\nK9/JDE3wGvPSxC9XyC9ZeX+8AL7ijXLpYhd5hubukhQZJY0iyoFkKn4Evmcm\nMa9NfE71AILtHDnv8Vn2XdW5zvYEcZqUEjr1ikPwjgPPFBXunarI43YvLa1n\nxHRMKGOsnbziZDRVKM0LULROvJ6IAc0gk1jo8ap1w28js8fm8qyUKq4Ni2yN\nly/F4gb/NCJlxR8w4O1ezg0JVLRSJwMsuzlIhaBW9z7lt1ZAHbgoZDVlhFFM\noUXy7yiODS25bKwF9iOwSyyc6OADtuvUvf170hw31YIweDToyH9GF9jI0Rf0\nyhrUoZSBRTUFMHS5WRSeWsz8Oa88YTltPJ4lhteOq6NUWxuBXKW2YvyrhEyF\nheasdHfP0lphgDY41gndaZdN9bOt2J9Z3qvkv8MCgOLTqQ0PmBZEuV/9yHDC\nhX2CEz67x3+Rd+9K7KpatFBqL3rTnwUf05dMh6+oe+53mL8n8YJqQgdXt9wm\nBZh0RwUCRQGcWg5KE0anz93ow9oYHzYLC8dFxNGePO3RNZ9+3FD1VDhYM/d1\ncYsuvs8q19pVY3kwTVCL7x3ytrr2KovJsI9rvsH/F8bHRdtaoCQwrkB1qhp1\nuqdQ\r\n=bTB4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDs9RG7iJPjfxtcfraOtS5xEymo0EPddlFsKLQK+RO2xAiEAglUqIUvqPt4dSKUfT1IghePZbrH2HDdwDqMB5W0IJrk="}],"size":1585,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-3.0.1-alpha-a408263.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_3.0.1-alpha-a408263.0_1641797186929_0.030107985412736182"},"_hasShrinkwrap":false,"publish_time":1641797187088,"_cnpm_publish_time":1641797187088,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}