From 6cdddced739352be033c589254fc2c67d1826b8d Mon Sep 17 00:00:00 2001 From: Jemma Poffinbarger Date: Sun, 28 Jul 2024 23:04:13 -0500 Subject: [PATCH] fix: set redis user info cache to expire every minute --- src/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index eb628fb..e8a359e 100644 --- a/src/server.js +++ b/src/server.js @@ -45,7 +45,8 @@ app.use(session({ store: new RedisStore({ client: redisClient }), secret: config.aes_key, resave: false, - saveUninitialized: false + saveUninitialized: false, + ttl: 60 })); // import the servers into one