{"name":"@envelop/parser-cache","version":"3.0.1-alpha-7ca7cb8.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.7.2-alpha-7ca7cb8.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":"7ca7cb88818ed55c8e60f736069d34fac3d76ab1","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-7ca7cb8.0","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-5vHCcr6bsSCmgSwU1MhZRPj0BzWJ7NQeI9eQrdC4+3LwY2N+03OY9nW9zoqnJQN4nhJ7hMHQrroeF9xj8Zac6w==","shasum":"e0ef0b186b7284f90e6a2228475defe1a052b714","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-3.0.1-alpha-7ca7cb8.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\nwsFcBAEBCAAQBQJh8mYoCRA9TVsSAnZWagAAuKEP/2OTjgcPvwdQSDc83YjA\nIutL9sgoixeX19F8+IwYw+UdnXzi0OgyPOaK6IxJ3HlM4sU+iqayEbgnl9P6\n2tX+51pSKexyxbgBBZqp6whGT0p8/FLznQiskoo/zISPro/dURF0x/tIGYVp\ntnp3xN+3pwXDHnkDsrCzIlnK/vB43utWpANMyAGTpYz2uovfVZ5aEvfRpU/l\n2L/SsuhFKypi8Av93yJPUqLJu50x4w/TioDKhyB/72UwzRNbP1f7uDM2Y/9r\nH5ziYxbCCS5XQGJsjgyl2wc9pHzpEtFe3c9eFLO4QtHhTbbfqUBeuXyZ6/MJ\ngP5HQy7n9TESSZyE/cY++u61DrvHehxGL0ewUZIdIuWoL1gFk3/8off3WN9m\nzc1PTcA/kXYp1YCRrh750pEnmLydmpne7ZSHcPjXJxdkEjGw4L5Asa8CG3hu\nv7uad6+v6rFCqxEwGHMnY8BpPfhVaHmiSerYKvAaEhy1hCVT/OmCkQ1kuFhK\nmiSRfeMSRDjtIjHzpk7BENEXaCHJBj2mwiuvMaCWUkCnYTIsYihLskbw3MXb\nIN6a0anEMA2tmgnezvMov1SjWKW2cVB0HYtuKLC7I8/ogKpOQQC5pcn99ecu\nTmKd12enSW9bm9nRG+4qR4tLnEzZKZsx+NDO1rykDfD7PQF3GOtXBbArKtoD\nzwhf\r\n=dzvn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6iaUyt1mpmBFxX+SK8BQwWAoP3O8AZY4uCmxB/S53aAIgBe6BHVSbEEIxGeGg2OLCZWr7OI4WiOvJKsNb0puXXxY="}],"size":1587,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-3.0.1-alpha-7ca7cb8.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-7ca7cb8.0_1643275816711_0.79039553301146"},"_hasShrinkwrap":false,"publish_time":1643275816869,"_cnpm_publish_time":1643275816869,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}