From 7e40ea8262878d394c052989a00299dc9bb6afde Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Fri, 20 Sep 2024 07:21:17 -0400 Subject: [PATCH 1/6] Add hexpire command --- lib/commands.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/commands.json b/lib/commands.json index e4118c2..6faa460 100644 --- a/lib/commands.json +++ b/lib/commands.json @@ -686,6 +686,17 @@ "keyStop": 1, "step": 1 }, + "hexpire": { + "arity": -4, + "flags": [ + "write", + "fast", + "denyoom" + ], + "keyStart": 1, + "keyStop": 1, + "step": 1 + }, "hget": { "arity": 3, "flags": [ From d1be35fae782b8c3c090906147c02907cf43c721 Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Fri, 20 Sep 2024 07:41:14 -0400 Subject: [PATCH 2/6] Do this just so I can get the git dependency to install on ioredis --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 33edeff..62f39e8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "build": "rm -rf built && tsc", "gen": "node tools/build", "lint": "standard --fix --verbose | snazzy", - "release": "release-it" + "release": "release-it", + "postinstall": "npm run build" }, "publishConfig": { "access": "public", @@ -49,4 +50,4 @@ "standard": "^16.0.4", "typescript": "^4.6.2" } -} +} \ No newline at end of file From 8e43fb436999caa7b1190e3cda8fc58270debbdc Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Fri, 20 Sep 2024 07:44:36 -0400 Subject: [PATCH 3/6] Didn't work --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 62f39e8..8efa099 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,7 @@ "build": "rm -rf built && tsc", "gen": "node tools/build", "lint": "standard --fix --verbose | snazzy", - "release": "release-it", - "postinstall": "npm run build" + "release": "release-it" }, "publishConfig": { "access": "public", From 3de51bfe5d46265377eeda2de7d863148e66d478 Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Fri, 20 Sep 2024 07:52:00 -0400 Subject: [PATCH 4/6] Try -5 --- lib/commands.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.json b/lib/commands.json index 6faa460..52bf962 100644 --- a/lib/commands.json +++ b/lib/commands.json @@ -687,7 +687,7 @@ "step": 1 }, "hexpire": { - "arity": -4, + "arity": -5, "flags": [ "write", "fast", From 4de5579b8bb7afd9b54def2acad820b10c56fa0c Mon Sep 17 00:00:00 2001 From: Matthew Baker Date: Fri, 20 Sep 2024 08:19:52 -0400 Subject: [PATCH 5/6] Fix arity and keyStop --- lib/commands.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands.json b/lib/commands.json index 52bf962..9b9f140 100644 --- a/lib/commands.json +++ b/lib/commands.json @@ -687,14 +687,14 @@ "step": 1 }, "hexpire": { - "arity": -5, + "arity": -7, "flags": [ "write", "fast", "denyoom" ], "keyStart": 1, - "keyStop": 1, + "keyStop": -1, "step": 1 }, "hget": { From bd2969b4ebe523bdf66029b4f1ae717d7cc811ad Mon Sep 17 00:00:00 2001 From: Pavel Pashov Date: Wed, 9 Jul 2025 16:43:23 +0300 Subject: [PATCH 6/6] fix: regenerate `hexpire` with `npm run gen` Original implementation by @mlb5000 --- lib/commands.json | 7 +++---- package.json | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/commands.json b/lib/commands.json index 9b9f140..712da74 100644 --- a/lib/commands.json +++ b/lib/commands.json @@ -687,14 +687,13 @@ "step": 1 }, "hexpire": { - "arity": -7, + "arity": -6, "flags": [ "write", - "fast", - "denyoom" + "fast" ], "keyStart": 1, - "keyStop": -1, + "keyStop": 1, "step": 1 }, "hget": { diff --git a/package.json b/package.json index 8efa099..33edeff 100644 --- a/package.json +++ b/package.json @@ -49,4 +49,4 @@ "standard": "^16.0.4", "typescript": "^4.6.2" } -} \ No newline at end of file +}