1 # Medusa Cache Redis
2
3 Use Redis as a Medusa cache store.
4
5 ## Installation
6
7 ```
8 yarn add @medusajs/cache-redis
9 ```
10
11 ## Options
12
13 ```
14 {
15 ttl?: number // Time to keep data in cache (in seconds)
16
17 redisUrl?: string // Redis instance connection string
18
19 redisOptions?: RedisOptions // Redis client options
20
21 namespace?: string // Prefix for event keys (the default is `medusa:`)
22 }
23 ```
24
25 ### Other caching modules
26
27 - [Medusa Cache In-Memory](../cache-inmemory/README.md)