Skip to content

Commit 5112ed7

Browse files
committed
Hotfix for redis issue
1 parent 250dba2 commit 5112ed7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
0.28.1 (????-??-??)
5+
-------------------
6+
7+
* Fix a timing bug when using Redis as the kv store.
8+
9+
410
0.28.0 (2025-01-08)
511
-------------------
612

src/kv/redis-store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class RedisKvStore extends KvStore {
3333
async set(key: string, value: any, options?: SetOptions): Promise<void> {
3434

3535
if (options?.ttl) {
36-
const newTtl = options.ttl / 1000;
36+
const newTtl = Math.floor(options.ttl / 1000);
3737
await this.redis.setEx(
3838
key,
3939
newTtl,

0 commit comments

Comments
 (0)