improve(db): do not use keys in redis

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-11 12:05:08 +01:00
parent 0cf73e299a
commit 848f475412
3 changed files with 9 additions and 10 deletions

View File

@@ -246,12 +246,8 @@ return "OK"
}
if (event.profile_id) {
multi.set(
`live:event:${event.project_id}:${event.profile_id}`,
'',
'EX',
60 * 5,
);
multi.sadd(`live:visitors:${event.project_id}`, event.profile_id);
multi.expire(`live:visitors:${event.project_id}`, 60 * 5); // 5 minutes
}
if (!_multi) {