Fixes: FRMW-2728, FRMW-2729 After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path. - applyParamsAsFilters - clearFiltersByKey - applyDefaultFilters - setContext - getQueryConfig - httpCompression - maybeApplyLinkFilter - refetchEntities - unlessPath - validateBody - validateQuery Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
28 lines
522 B
Markdown
28 lines
522 B
Markdown
# 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)
|