
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
@envelop/validation-cache
Advanced tools
This plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.
@envelop/validation-cacheThis plugins adds simple LRU caching to your validate, to improve performance by caching the
validation result.
This plugins improves performance of validating by ~50% (based on benchmarks).
yarn add @envelop/validation-cache
import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { envelop, useEngine } from '@envelop/core'
import { useValidationCache } from '@envelop/validation-cache'
const getEnveloped = envelop({
plugins: [
useEngine({ parse, validate, specifiedRules, execute, subscribe }),
// ... other plugins ...
useValidationCache({
// options goes here
})
]
})
cacheSet this to pass in a cache instance. By default a new LRU cache is created using default max and
ttl.
FAQs
This plugins adds simple LRU caching to your `validate`, to improve performance by caching the validation result.
The npm package @envelop/validation-cache receives a total of 119,280 weekly downloads. As such, @envelop/validation-cache popularity was classified as popular.
We found that @envelop/validation-cache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.