feat(medusa): Cache modules (#3187)

This commit is contained in:
Frane Polić authored and GitHub committed 2023-03-10 15:09:26 +01:00
1 parent f43f03badb
commit f97b3d7cce
42 files changed
+783 -186

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# Medusa Cache Redis
Use Redis as a Medusa cache store.
## Installation
```
yarn add @medusajs/cache-redis
```
## Options
```
{
ttl?: number // Time to keep data in cache (in seconds)
redisUrl?: string // Redis instance connection string
redisOptions?: RedisOptions // Redis client options
namespace?: string // Prefix for event keys (the default is `medusa:`)
}
```
### Other caching modules
- [Medusa Cache In-Memory](../cache-inmemory/README.md)