1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix EXPIREAT spec

This commit is contained in:
dovi
2023-05-02 20:13:27 -04:00
parent 73994f243b
commit fe1ae49a40
3 changed files with 36 additions and 30 deletions

View File

@@ -9,7 +9,7 @@ export default {
timestamp: number | Date,
mode?: 'NX' | 'XX' | 'GT' | 'LT'
) {
const args = ['EXPIRE', key, transformEXAT(timestamp)];
const args = ['EXPIREAT', key, transformEXAT(timestamp)];
if (mode) {
args.push(mode);