{"name":"@envelop/parser-cache","version":"4.4.0-alpha-35741fe.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.4.0-alpha-35741fe.0","graphql":"^14.0.0 || ^15.0.0 || ^16.0.0"},"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":"35741fecefefb8e6a9da3b4b6227c80609ab55e8","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.4.0-alpha-35741fe.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-gfGxf69uTCPF9eNT82OyyFbdYw2+UlMFUobMGjpG4t6kzY40OWKgSV6LGZc6P1occbciK/xu6SXtIFlxzoqXZA==","shasum":"b1d51b7862503ad54684cf85e8a498d5cab3a004","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.4.0-alpha-35741fe.0.tgz","fileCount":5,"unpackedSize":4717,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjz3oVZ2TeC7K2vw8Sj/G1+efntjSdNmNjBIQ20RTqMQIhAJcWfaYU/tHMEiSsBx659n5PGZGHEEZo0tltC4Fmfvu+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVT4cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFXg//aJ5G+2V428pw03ej2WYSpvo8TDoyG0KpWy1wP/zZCd4ewjcf\r\n6Ll7d2rMM/poajQV+jN0C2HnjUmWOtIcBdYww6SZ657dQNK78J8cKcLW2/Cg\r\nOlcjyBrdfjSFLPy1FiKo88LcTnnekeqaiMoO8q9BFlZn4TSZlJbGGY5oecCN\r\nDqdc19TBqW1QwifOM7OrddA0btfNaI1jzpoKxblMkXgodOdRovbuHZfgnqNU\r\nS2Po2PR69XK/icoLHuUcHaSgvlZgsGKuE5MKvvNBHbZ/d5tf3E0pcoflI+uX\r\n6EAA6b1Hq7a3niEN7fhTJfOpveWfUbG7Ht/sRprY+5UqerX5aw3SQyL+sxQJ\r\nsP3YbmtCMi5OQu1xP88GMO3sVTBZk3zKsQay2E8zjz3YBWTtetfebsgpHh5h\r\nwCpmVsZ+7BbORa9NbJ8Mz25TQ5yiO48e2N+XJBNfg9c+dCHhvj2E9Ss07axB\r\ngRWW4bJ4oKI67HfmlwaAzcMzMEp508t87ZWfk0eK6qVJGkJu4CGreSC5m42H\r\nB31wdnHnramXOkzWC63hmeg4vJYpkmYDdcP6eFEez1chdC+TKgr0l2keEMar\r\nHBnbxOggoyqc/rAu14WghZbk7SaPARB7fYLDTua4DIkCqHVCd5sD1JAbqKUY\r\nCi/DvSEqmn/aSfOBQswJjH3F5UyHY2OXblA=\r\n=Yu7V\r\n-----END PGP SIGNATURE-----\r\n","size":1463,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.4.0-alpha-35741fe.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.4.0-alpha-35741fe.0_1649753627977_0.9577683440466642"},"_hasShrinkwrap":false,"publish_time":1649753628105,"_cnpm_publish_time":1649753628105,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}