{"name":"@envelop/parser-cache","version":"1.1.0-alpha-d7e3951.0","sideEffects":false,"peerDependencies":{"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"}},"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#### `max`\n\nSet this to configure your maximum amount of items in the LRU cache. The default is `1000`.\n\n#### `ttl`\n\nSet this to configure the TTL (time to live) of items in the LRU cache. The default is `3600000`.\n","readmeFilename":"README.md","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@1.1.0-alpha-d7e3951.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-AxIR9xISBdvxJ/hnGZgb3qPwWuygdhslK/JF5G9fnRRzBFf+kTC3X93YgI5Si5xChA01mIfbjl5Hv6Q5pBsoAA==","shasum":"5da205393c5c57c4d48163b8df4c8e7b4cfd32d3","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-1.1.0-alpha-d7e3951.0.tgz","fileCount":5,"unpackedSize":4506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKQrJCRA9TVsSAnZWagAAOrkQAIFrDt7RDZ5tVcxk/Rzm\n07gWXOHINSRh0JPi9xqbptbH6bOdRvZk171h4ilHe17d4BYR64BWNvCnnrev\nuXCbsnGhkKm2SclnMIAqagfTnVoSfXI/K3nG1LqNSolPVvH4Y4JSYNP9QYk9\nnC9ap2YgrEojmxeGtneBpPsyTpduP6WF7WmRwMD26/rbcG++ovMtCln44zDj\nHwSIKUrkkpJrmFzGgi/nTMshbxLZHgrdAoxF/yteT/UhpdliDU9+3+0hM6rO\nVFFm+kqm+g/nE/dsqmIoHg8vy/K0tlnN94C2juqKooqCoBTeHha72U8Vk0SK\nu1idZqD5Y89xYfzd9qp/wafX8yXNRpc6tUizGc2ai1i7jQH8Of9kBXHsVagf\n7VD7KbOg87bQnLuX6T72BK5Kr63flaJ85+ZT1ToMTRvcmvIjG8YXz84FMxOQ\ndTfRH3XWzK7gaJXR/2q7iVs3qNXp/tnr+KCQxdC17HX7O3/ln6w61hrKJXdX\n6A+5HzQwgeoLj+hDu6e/+IsB96WNdFBKVUhQR9q+sSmTYgVDjspRZNDgNV+l\n8mvuKlE1lmtFyWWPZpDmRNf9m0PrsZVw3Ml6YrMBe/XeAXDrWvAFyFdz/A3N\n2rHBn88cxDUTuaZXHel9jDqk87FrjUDvGUrs5mABoNoI1ZYaF9QA1FVRY5tK\n0jWP\r\n=n/gr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG5hKJiVC9NvUeXAsn0DoH3KX99RDAqe5ne+E89OYMqKAiBPu9p6kg2r4EiFKyzy7rsFtd4BIgYH/llaRG5FB29HAQ=="}],"size":1529,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-1.1.0-alpha-d7e3951.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_1.1.0-alpha-d7e3951.0_1630079689668_0.4133593473060213"},"_hasShrinkwrap":false,"publish_time":1630079689777,"_cnpm_publish_time":1630079689777,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}