Skip to content

Commit

Permalink
fix: set redis user info cache to expire every minute
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jul 29, 2024
1 parent 5e98a93 commit 6cdddce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cdddce

Please sign in to comment.