Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Visit the Heroku Blog

    Find news and updates from Heroku in the blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Add-ons
  • All Add-ons
  • Upstash for Redis®*
Upstash for Redis®*

This add-on is operated by Upstash Inc.

Serverless Database for Redis® with durable storage and low latency.

Upstash for Redis®*

Last updated August 24, 2022

Table of Contents

  • Installing the Add-on
  • Connecting to the Database
  • Data Browser & CLI
  • Migrating Between Plans
  • Removing the Add-on
  • Support

Upstash is a serverless database with Redis API and durable storage. It provides:

  • Low latency data
  • Durable storage
  • Ease of use
  • REST API (SDK)

Upstash supports the Redis client protocol up to version 6.2.

Installing the Add-on

Install Upstash Redis with the command:

heroku addons:create upstash-redis

After installation, your application has the following environment variables configured:

UPSTASH_REDIS_URL: The full Redis URL that includes the password and endpoint. You can use this URL in Redis libraries in your application code.

UPSTASH_REDIS_REST_URL: The endpoint to connect to the REST API for your redis database. Upstash has an official REST API SDK.

UPSTASH_REDIS_REST_TOKEN: The credential to connect to the REST API.

You can find more information about the REST API in Upstash’s documentation

Use the UPSTASH_REDIS_URL with Redis clients. UPSTASH_REDIS_REST_URL is for the Upstash SDK and API.

Connecting to the Database

After provisioning the database, you can see Upstash Redis in the Resources tab of the Heroku Dashboard.

Clicking on Upstash redirects you to the Upstash Console for your database. There are code samples for connecting to your database on this page.

Upstash Console to Connect Your database

Data Browser & CLI

For ease of use, Upstash provides a Data Explorer and CLI in the Console. You can browse your data using this functionality.

Data Browser

Console CLI to execute Redis commands:

CLI

Migrating Between Plans

It’s possible to change from your current plan to another. For example:

heroku addons:upgrade upstash-redis:3g

You can see all available plans here.

Removing the Add-on

You can remove Upstash Redis with the following command:

This action destroys all associated data and can’t be undone!

heroku addons:destroy upstash-redis

Support

If you have any questions, please send Upstash an email at support@upstash.com.

You can join the Upstash discord channel.

Check Upstash’s documentation for more about its features and example projects.

Keep reading

  • All Add-ons

Feedback

Log in to submit feedback.

Zara 4 UseCSV

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices