{"name":"@envelop/validation-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/validation-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/validation-cache`\n\nThis plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.\n\nThis plugins improves performance of validating by ~50% (based on benchmarks).\n\n## Getting Started\n\n```\nyarn add @envelop/validation-cache\n```\n\n## Usage Example\n\n```ts\nimport { envelop } from '@envelop/core';\nimport { useValidationCache } from '@envelop/validation-cache';\n\nconst getEnveloped = envelop({\n  plugins: [\n    // ... other plugins ...\n    useValidationCache({\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 `validate`, to improve performance by caching the validation result.","bugs":{"url":"https://github.com/dotansimha/envelop/issues"},"homepage":"https://github.com/dotansimha/envelop#readme","_id":"@envelop/validation-cache@1.1.0-alpha-d7e3951.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-4V3oKXFVjwtHe/GLW+HIgVyF986TleVNXrWy/3czD74Q2WlhA4dE1434VWpJo9jQzWK1XVYB2bNMe5pckjzLjw==","shasum":"99f8ca7fdfff5ab0f6b59d06e9856c5fd6d5b9b5","tarball":"http://registry-npm.ywwl.com/@envelop/validation-cache/download/@envelop/validation-cache-1.1.0-alpha-d7e3951.0.tgz","fileCount":5,"unpackedSize":3839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKQrNCRA9TVsSAnZWagAAEYsP/RrhvKip/CHvyY/9hMSG\nyFWE0i5BQW+Ir4zJvtO7SLZZpi9mybDb4OATkUwkwONPhDKt+Tt7QKsvt8Gl\nFGlf0ZZjmBjrEMVZKxug4SRiHf/kudYo72XLmH8jUc1Cftu90/fSrdDY6Ev6\nmOASSOur2PAaM4o4UJTEJm6+KED3uiH9nvrv+8BG2b1xCpFRqd4c9+6DMCSw\ngfB9bYHEBBEEq4am+hRhC0VjX2x4bLnLIsVBC0RWZ5SHlMhc/poRzvyXS6TA\nZMnppZgewoo57aaAnSU4q6DfzQu4j7GsUXApo62KzGp8G2mCQaBRjxDSFDKR\n1eW/v5WGQ60f9/VlT9X6HxMcD+ng1yJHCbAQ4DSLI57NByTJZ27dQiAkxDs4\nyit/zcJmBcEBBT3dGwCGHsiNzxD+P8T6SwJDUulDzA9hcKtxFumTif4p8Iu6\nQ9ogD7JMd9IV1jUfOOU/cJNwdUGE7+B6vgHWxTRzMFSglwuoecLHQCdhiL/P\nt5OIznpjBrouZbwoC/1o2jMXzUmyyLAYAvzVYdQn4vi0hetM0AuRdIQwYu8C\nyA7h8riHFlS2voVplB7E514bqruLIpDo/SSd4ACDb/sv4ApFUB2yLW0I0ucN\niallISRAbmwlRCwAU/USmg/ugxrT7ihDBaYlOMYjfedXRid15zZlGhxkUs56\nk3uO\r\n=SUjD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNHKPueO/dUPRjerE5T3/8k+7kcN+tbxcKe8OruYDq1wIhAPKw74+qXJsm2TxynYTvpFEDmt2wdAFSA7pnOU6IhfNL"}],"size":1464,"noattachment":false,"key":"/@envelop/validation-cache/-/@envelop/validation-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/validation-cache_1.1.0-alpha-d7e3951.0_1630079692918_0.15663117287355677"},"_hasShrinkwrap":false,"publish_time":1630079693087,"_cnpm_publish_time":1630079693087,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}