on GitHub" data-tooltip-id=":R1blcldb:">v2.5.1·Edited Oct 15·
The In-Memory Cache Module uses a plain JavaScript Map object to store the cached data. This module is used by default in your Medusa application.
This module is helpful for development or when you’re testing out Medusa, but it’s not recommended to be used in production.
For production, it’s recommended to use modules like Redis Cache Module.
Add the module into the modules
property of the exported object in medusa-config.ts
:
Option | Description | Default |
---|---|---|
| The number of seconds an item can live in the cache before it’s removed. |
|