{"name":"@envelop/validation-cache","version":"0.2.1-alpha-e01c930.0","sideEffects":false,"peerDependencies":{"graphql":"^14.0.0 || ^15.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@0.2.1-alpha-e01c930.0","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-O3WtsJry2eKZGRtPIcyZLivB8IVKjL4NbbivahYDYxIK9gyK28XDBh0+7IKLpuGJztBnuVO5ezFBAhHYLLk5Ow==","shasum":"e963b273642071770534f32149c59430de3f530a","tarball":"http://registry-npm.ywwl.com/@envelop/validation-cache/download/@envelop/validation-cache-0.2.1-alpha-e01c930.0.tgz","fileCount":7,"unpackedSize":7888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5osxCRA9TVsSAnZWagAAiqUP/3+sTPmnTnU1mXwhCnTO\nfKWAgPix7mzqsrR9JI9Ar2hwxxliJ1MgVsqUkPz8ojKL2uIuxEySExdA7ws9\nb5SixsEwQCaU3EYKJiyeaJiUWsOArAjLlxwBQ68o73kpeA3pMxbJpU/u0aZL\n0aDFybLDMtaOWIXco4+bRIVhR0Adv/KTLzHEtBz0LokTE902alf5LoxcWuET\nD9vkohgyH2sg9wOnV5W2MMdLUBnfA+ClhFPQyQmcQTU8V4DERHUU1ewVdQxc\n+rlx4XgkpnwIYnXlK/ugmZ5kZmLJBcch8zmLpPQoAepQJ0YYvMA5URh8eCQW\nn9Agt891fWYdjNRTG22ldh2FKot2p3+M1AmUYuRmeotOk1/05KMsPa4Tnp1N\nvP3xgsgysMzsPXkdscRXvMottIy08Gfm6oY4AhT8EMG8U5E0U8OEppSciprT\nuNC2j+Kvj/M1SxAwSIDac9GDweac9z4ATEdXkiE/l4P3dYLD39TFtqenGo8M\nXjucz6mswUDNOtBp6YVgRFjkGL/uWaswbJFhwVWk5C10aRiNFNh8K3kXxLp+\n97XV5dYBZcK52yyA2vHdsRRDjfmlgLrEz8DidMEIU/UGJMoV2vbRt6JlUEMS\nklQhQqPJTRwwoV7UTRqGjO1qz08iNVbKboxKAtGCAk7QYMdA7nBzkcG2pDwN\ne2BR\r\n=yWkf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmvgY3ufhBAZ5lmVHD9xSFTpK6nYGc3wLfhyzMl0z/iAiANKUv34AsYNfq4XL812WwZXhs5Y5VG31YQusQgcuNNJA=="}],"size":2051,"noattachment":false,"key":"/@envelop/validation-cache/-/@envelop/validation-cache-0.2.1-alpha-e01c930.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_0.2.1-alpha-e01c930.0_1625721649122_0.6222542457115705"},"_hasShrinkwrap":false,"publish_time":1625721649298,"_cnpm_publish_time":1625721649298,"dist-tags":{"alpha":"11.0.2-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","latest":"11.0.1","rc":"11.0.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508"}}