Cache Modules

A Cache Module is used to cache the results of computations such as price selection or various tax calculations.

The underlying database, third-party service, or caching logic is flexible since it's implemented in a module. You can choose from Medusa’s cache modules or create your own to support something more suitable for your architecture.


List of Cache Modules#

By default, Medusa uses the In-Memory Cache Module. This module uses a plain JavaScript Map object to store the cache data.

This is useful for development. However, for production, it's highly recommended to use other Cache Modules, such as the Redis Cache Module.

In-Memory
For Development
Redis
For Production

Create a Cache Module#

To create a cache module, refer to this guide.

Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break