|
| 1 | +export const metadata = { |
| 2 | + title: `Redis`, |
| 3 | +} |
| 4 | + |
| 5 | +# {metadata.title} |
| 6 | + |
| 7 | +In this guide, you'll learn about the managed Redis service that Cloud provides as part of your project environments. |
| 8 | + |
| 9 | +## Managed Redis Service |
| 10 | + |
| 11 | +Cloud offers a managed Redis service for your project environments. Each environment has its own dedicated Redis instance that is automatically provisioned when the environment is created. |
| 12 | + |
| 13 | +So, when you create a new project, Cloud creates a production Redis instance for the production environment. If you create a staging environment, Cloud creates a separate Redis instance for that environment as well. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | +## Configured Redis Infrastructure Modules |
| 20 | + |
| 21 | +Cloud automatically configures your Medusa application to use Redis-based Infrastructure Modules, including: |
| 22 | + |
| 23 | +- [Redis Event Module](!resources!/infrastructure-modules/event/redis) |
| 24 | +- [Redis Cache Module](!resources!/infrastructure-modules/cache/redis) |
| 25 | +- [Redis Locking Module Provider](!resources!/infrastructure-modules/locking/redis) |
| 26 | +- [Redis Workflow Engine Module](!resources!/infrastructure-modules/workflow-engine/redis) |
| 27 | + |
| 28 | +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. |
| 29 | + |
| 30 | +<Note> |
| 31 | + |
| 32 | +If you're using a Medusa version before v2.7.0, [contact support](#) for assistance in configuring the Redis modules. |
| 33 | + |
| 34 | +</Note> |
| 35 | + |
| 36 | +### Override Redis Configurations |
| 37 | + |
| 38 | +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. |
| 39 | + |
| 40 | +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. |
| 41 | + |
| 42 | +<Note title="Tip"> |
| 43 | + |
| 44 | +To set the connection URL of your external Redis instance, refer to the [Environments](../environments/page.mdx#add-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. |
| 45 | + |
| 46 | +</Note> |
0 commit comments