- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
In-Memory Cache Module
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.
Register the In-Memory Cache Module#
Note: The In-Memory Cache Module is registered by default in your application.
Add the module into the modules
property of the exported object in medusa-config.ts
:
In-Memory Cache Module Options#
Option | Description | Default |
---|---|---|
| The number of seconds an item can live in the cache before it’s removed. |
|
Was this page helpful?