You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-09-11 18:50:46 +03:00
fix KEEPTTL in SET
This commit is contained in:
@@ -53,6 +53,8 @@ export function transformArguments(key: string, value: string, options?: SetOpti
|
||||
args.push('EXAT', options.EXAT.toString());
|
||||
} else if ('PXAT' in options) {
|
||||
args.push('PXAT', options.PXAT.toString());
|
||||
} else if ((<KEEPTTL>options).KEEPTTL) {
|
||||
args.push('KEEPTTL');
|
||||
}
|
||||
|
||||
if ((<NX>options).NX) {
|
||||
@@ -61,10 +63,6 @@ export function transformArguments(key: string, value: string, options?: SetOpti
|
||||
args.push('XX');
|
||||
}
|
||||
|
||||
if ((<KEEPTTL>options).KEEPTTL) {
|
||||
args.push('KEEPTTL');
|
||||
}
|
||||
|
||||
if ((<SetCommonOptions>options).GET) {
|
||||
args.push('GET');
|
||||
}
|
||||
|
Reference in New Issue
Block a user