From 2af58df78ff82d70a463f3e08780a73694b52a32 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 14 Oct 2024 10:39:24 +0530 Subject: [PATCH] Redis cache url added --- medusa-config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/medusa-config.js b/medusa-config.js index 996aa71..eee7ce1 100644 --- a/medusa-config.js +++ b/medusa-config.js @@ -12,5 +12,13 @@ module.exports = defineConfig({ jwtSecret: process.env.JWT_SECRET || "supersecret", cookieSecret: process.env.COOKIE_SECRET || "supersecret", } + }, + modules: { + [Modules.CACHE]: { + resolve: "@medusajs/medusa/cache-redis", + options: { + redisUrl: process.env.CACHE_REDIS_URL, + }, + }, } })