We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba2163 commit 9a00ceaCopy full SHA for 9a00cea
lib/stores.ts
@@ -62,12 +62,12 @@ export class RedisStore extends Store {
62
}
63
64
saveSession(sessionId: string) {
65
- const key = this.computeKey(sessionId);
66
- this.redisClient
67
- .multi()
68
- .set(key, true)
69
- .expire(key, this.options.sessionDuration)
70
- .exec();
+ this.redisClient.set(
+ this.computeKey(sessionId),
+ "1",
+ "EX",
+ "" + this.options.sessionDuration
+ );
71
72
73
0 commit comments