Upstash works with Redis® API, that means you can use any Redis client with Upstash. At the Redis Clients page you can find the list of Redis clients in different languages.
Probably, the easiest way to connect to your database is to use redis-cli
.
Because it is already covered in Getting Started, we
will skip it here.
After completing the getting started guide, you will see the database page as below:
The information required for Redis clients is displayed here as Endpoint,
Port and Password. Also when you click on Connect
button, you can copy
the code that is required for your client.
Below, we will provide examples from popular Redis clients, but the information above should help you configure all Redis clients similarly.
If you have enabled TLS in your database, please refer to Connect With TLS section instead.
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:
Library: ioredis
Example:
Library: redis-py
Example:
Library: jedis
Example:
Library: redigo
Example:
Upstash works with Redis® API, that means you can use any Redis client with Upstash. At the Redis Clients page you can find the list of Redis clients in different languages.
Probably, the easiest way to connect to your database is to use redis-cli
.
Because it is already covered in Getting Started, we
will skip it here.
After completing the getting started guide, you will see the database page as below:
The information required for Redis clients is displayed here as Endpoint,
Port and Password. Also when you click on Connect
button, you can copy
the code that is required for your client.
Below, we will provide examples from popular Redis clients, but the information above should help you configure all Redis clients similarly.
If you have enabled TLS in your database, please refer to Connect With TLS section instead.
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:
Library: ioredis
Example:
Library: redis-py
Example:
Library: jedis
Example:
Library: redigo
Example: