Package Exports
- @medusajs/cache-inmemory
- @medusajs/cache-inmemory/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@medusajs/cache-inmemory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Medusa Cache In-memory
Medusa in-memory cache module. Use plain JS Map as a cache store.
Installation
yarn add @medusajs/cache-inmemory
Options
{
ttl?: number // Time to keep data in cache (in seconds)
}
Note
Recommended for testing and development. For production, use Redis cache module.