Skip to main content
If you have enabled TLS (SSL) on your database, you will need to configure your client accordingly. After clicking the ‘Connect’ button, you can copy the code necessary for your client. Below, you can also find example client configurations with TLS enabled. If you are using a Redis client not listed here, please refer to your client’s documentation.

upstash-redis

Because upstash-redis is HTTP based, we recommend it for Serverless functions. Other TCP based clients can cause connection problems in highly concurrent use cases.
Library: upstash-redis Example:

Node.js

Library: ioredis Example:

Python

Library: redis-py Example:

Java

Library: jedis Example:

Go

Library: redigo Example: