Redis

In this guide, you'll learn about the managed Redis service that Medusa provides as part of your project environments.

Managed Redis Service#

Medusa provisions and manages Redis servers for each of your environments.

Each project environment has a dedicated Redis server. These Redis servers are entirely isolated from one another, similar to the Postgres databases.

Diagram showcasing Redis isolation between environments


Configured Redis Infrastructure Modules#

Medusa automatically configures your Medusa application to use Redis-based Infrastructure Modules, including:

So, you don't need to configure any of these modules and providers or set up Redis manually. Also, if you have them configured in medusa-config.ts, remove them to avoid conflicts.

Note: If you're using a Medusa version before v2.7.0, contact support for assistance in configuring the Redis modules.

Access Redis Configurations#

Since Cloud is a managed service, you can't directly access your Redis instance or its configurations. Medusa also doesn't expose the Redis instance connection or configuration details.

Override Redis Configurations#

If you need to customize the Redis configurations for any of the Redis modules and providers, you must host and manage your own Redis instance externally.

Then, configure the modules and providers you're overriding in your medusa-config.ts file to connect to your external Redis instance. Refer to the documentation for each module for more details on how to configure it.

Tip: To set the connection URL of your external Redis instance, refer to the Manage Environment Variables guide to learn how to add environment variables. You can then use these variables in your medusa-config.ts file to connect to your Redis instance.
Was this guide helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break