{"name":"@envelop/parser-cache","version":"4.3.2-alpha-a0c2439.0","sideEffects":false,"peerDependencies":{"@envelop/core":"2.3.2-alpha-a0c2439.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":"a0c2439ac435e31e6d02c94d2b72ad9ea0686f99","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.3.2-alpha-a0c2439.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-2bft46s4ETJssQhnMbvAQUc2CAHgPGayiNgCPgqZfRBMOVFcFkRdokEF5aR+oxEbJfLKN9ofGO3RAzndnMzRCg==","shasum":"cf3b4a4e4bdb581e298f0f85d2bf6a5ef7a3582f","tarball":"http://registry-npm.ywwl.com/@envelop/parser-cache/download/@envelop/parser-cache-4.3.2-alpha-a0c2439.0.tgz","fileCount":5,"unpackedSize":4962,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEO4MHYvIUeXIELHqRJeVay3uzqUqA/lE9JvxLBu3DeKAiEAlNa+RODpiC+rnI6Wd3FAhmS37ftdulX76zIPSB1P/Q0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib7+iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHLA/+LnK/UcsCQpPi/UVR+97+ussEYgE/Pp7dV0s4CsECgH/e2tsf\r\neJ5r/4OLRPtLyBpaefUdY/7V88r5PxzxfY7YWbWYTb5ns/JWLELdqsQisQuX\r\n5HcIwfCL7TN66yDENDEiwaO6TncXXOUtANUwNC1CJc19lZ9vEkHghixo+nKs\r\nH0ud01VxhG5Ou8a5TVZmmKiRizadL2ruJQsvOgYFbTtlQbh169PKWE4UAe9L\r\n8zhM5oAZA/dl56picrSKOIFAI5XtCDMA+zc7xDMyq21VlWh1/8xwYL6loGe8\r\noC9sBj3ktRrmvIikCG0lCktxK54G3zk1t+BXY4/PwThSEO7Px3GPxI1+5BtZ\r\n8UQSBScDG/N8NeGA4OH6yUF6asPzXA/Ntl2F8TyII1OvAQitiJiKM/cAgHDT\r\n2xCpyuc8XveGOJC7L2FRwvVKWdldzfFkvF0SvdK1pF8e1cAvxmC+fQcCfKso\r\nvVxs1IubiD8mPIY5qoLdKO7sMe+VqbNykS0eduudG925BGwh98XKuzOWSdTg\r\nwq2At5O81Kbgl6w74wpv7ddt/sY1ncA2gsRzZhjAM01vxXjkvYh3RYKz+frH\r\n9b9c0zIXH2qNGhZEC5XcXBSdhBbIL1/+e2SfnNmh28k3B9axDEn7Bddv2ViJ\r\nyA0fUCqEUXL6cxHqYO22uyy4lS3ThxefkcY=\r\n=dHy/\r\n-----END PGP SIGNATURE-----\r\n","size":1585,"noattachment":false,"key":"/@envelop/parser-cache/-/@envelop/parser-cache-4.3.2-alpha-a0c2439.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.3.2-alpha-a0c2439.0_1651490722014_0.4849686577895005"},"_hasShrinkwrap":false,"publish_time":1651490722193,"_cnpm_publish_time":1651490722193,"dist-tags":{"alpha":"11.0.0-alpha-20261019231601-b21e6cedc1a444383d9ce69fe6180f5b4ff67120","latest":"11.0.0","rc":"11.0.0-rc-20261022165416-7c29decb398764e6ac3915e1c539c478cbf19237"}}