Disable automatic serialization
Your data is (de)serialized asjson
by default. This works for most use cases
but you can disable it if you want:
Keep-Alive
@upstash/redis
optimizes performance by reusing connections wherever possible, reducing latency.
This is achieved by keeping the client in memory instead of reinitializing it with each new function invocation.
As a result, when a hot lambda function receives a new request, it uses the already initialized client, allowing for the reuse of existing connections to Upstash.
This functionality is enabled by default.
Request Timeout
You can configure the SDK so that it will throw an error if the request takes longer than a specified time. You can achieve this using the signal parameter like this:Telemetry
This library sends anonymous telemetry data to help us improve your experience. We collect the following:- SDK version
- Platform (Deno, Cloudflare, Vercel)
- Runtime version (node@18.x)
UPSTASH_DISABLE_TELEMETRY
environment variable
to any truthy value.
enableTelemetry: false
when initializing the Redis client: