security/codeql-dependabot-gitleaks
| 1 | # Medusa Cache In-memory |
| 2 | |
| 3 | Medusa in-memory cache module. Use plain JS Map as a cache store. |
| 4 | |
| 5 | ## Installation |
| 6 | |
| 7 | ``` |
| 8 | yarn add @medusajs/cache-inmemory |
| 9 | ``` |
| 10 | |
| 11 | ## Options |
| 12 | |
| 13 | ``` |
| 14 | { |
| 15 | ttl?: number // Time to keep data in cache (in seconds) |
| 16 | } |
| 17 | ``` |
| 18 | |
| 19 | ### Note |
| 20 | |
| 21 | Recommended for testing and development. For production, use Redis cache module. |
| 22 | |
| 23 | ### Other caching modules |
| 24 | |
| 25 | - [Medusa Cache Redis](../cache-redis/README.md) |