You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix: zero ttl is ignored (#2349)
* fix: zero ttl is ignored * Update SET.ts * Update SET.ts Co-authored-by: Leibale Eidelman <me@leibale.com>
This commit is contained in:
@@ -35,13 +35,13 @@ export function transformArguments(
|
||||
typeof value === 'number' ? value.toString() : value
|
||||
];
|
||||
|
||||
if (options?.EX) {
|
||||
if (options?.EX !== undefined) {
|
||||
args.push('EX', options.EX.toString());
|
||||
} else if (options?.PX) {
|
||||
} else if (options?.PX !== undefined) {
|
||||
args.push('PX', options.PX.toString());
|
||||
} else if (options?.EXAT) {
|
||||
} else if (options?.EXAT !== undefined) {
|
||||
args.push('EXAT', options.EXAT.toString());
|
||||
} else if (options?.PXAT) {
|
||||
} else if (options?.PXAT !== undefined) {
|
||||
args.push('PXAT', options.PXAT.toString());
|
||||
} else if (options?.KEEPTTL) {
|
||||
args.push('KEEPTTL');
|
||||
|
Reference in New Issue
Block a user