{"name":"@envelop/parser-cache","version":"3.0.0-alpha-f336686.0","sideEffects":false,"peerDependencies":{"@envelop/core":"1.7.0-alpha-f336686.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":"f3366865e1f6eb7d6e1ebefcf67851d8610b0f02","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.0-alpha-f336686.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Bme0Zsu91bIkoeuEUrJCneXZfEylLySKfO1WUgtVJVXlUEScos/8t1kproALq0h5Z/vyCcUca76m078aUAnj3A==","shasum":"c00cbbb660774852ee0eb446c0febcefab216cc9","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-3.0.0-alpha-f336686.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\nwsFcBAEBCAAQBQJh2EtICRA9TVsSAnZWagAADvAP/3lhi6DSLguLgZpoIzdA\nvVWxAQ6EYg7Tu4jSJ9twMu77CLMUwma1I1P95I6Ur1n8et/6GFcZpTS0Qqsy\n8OdfCqY3ur6hkVU3UbwqQamphgCWiloW8yoskXHSlAfX2nLV3w2PlVWI6C/y\n2p2Tvqrzm/kZM1V8Kn4e0QqBY4x51ag9/8xhARSW4KrphvtbRhYszfcQ+Cs7\noh/hY/nv5ahu/iHnQ44Uh8vvvS/Sr743zGToiPP3RToJWqbWO19UEtSbGuxd\n5/sVKA9yRAGkEmj6giVNgCLyUTSczh7BiLLTdpqBQgJ2flO3u5nCrsd7sp5V\nRFNM6ny1tVVxsq8Q8Zpg4YF1ic3JB3ZMaDy4EdsjIOAgvSM/yIyVuXwGpfTA\nSfwZTsRXYt+I+xLsmNBUKM7FFsSyXnbuYt83zDcBMDlgq6XKn3q4JHPMf4Cs\nU8bgPyQ4BcMcZjVz4LC6UrLyZq9SMYzaTiperoQNp+M9+uwEaIfStl5/y5sh\ng6NHkyTs1anvy3emGWDi0keJbGy5Q8/sBcViPbrNmgySmT7iO9WMAwBOgRAt\n2R4JH/tVzw/PMLKSCOUGuY3oXrJcM0bPubLK4SVpj9mNDwAP4x5djcGGyIoB\njsRQG533Fcw5VrIcyftAs07o3pb0QPETWfNpSLlRwJatyFPpcFpXvC8MXlLC\nkfgp\r\n=mU5x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcxL+EwsZLyeMQ+2aIuynmjrSRxh/0Vc2GenpNofsWLwIhAMci/sGikOpS2cXFzvZ/w6CcB7W3ks72sTcNY99ix3pZ"}],"size":1583,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-3.0.0-alpha-f336686.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.0-alpha-f336686.0_1641564999967_0.21225578673929757"},"_hasShrinkwrap":false,"publish_time":1641565000091,"_cnpm_publish_time":1641565000091,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}