Redis and session timeout added
This commit is contained in:
5
backend/jobs/sessionCleanup.js
Normal file
5
backend/jobs/sessionCleanup.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { cleanupExpiredSessions } from '../utils/redis.js';
|
||||
|
||||
setInterval(async () => {
|
||||
await cleanupExpiredSessions();
|
||||
}, 5000);
|
||||
Reference in New Issue
Block a user