Skip to content

Commit dfd4e92

Browse files
authored
Add Redis 7 commands to CLI (#71)
1 parent fb4c658 commit dfd4e92

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/redis-cli-panel/help/redis.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,4 +2240,35 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
22402240
since: '2.8.13',
22412241
url: 'https://redis.io/commands/latency-help',
22422242
},
2243+
2244+
/**
2245+
* Redis 7
2246+
*/
2247+
EXPIRETIME: {
2248+
syntax: 'EXPIRETIME key',
2249+
summary:
2250+
'Returns the absolute Unix timestamp (since January 1, 1970) in seconds at which the given key will expire.',
2251+
since: '7.0.0',
2252+
url: 'https://redis.io/commands/expiretime',
2253+
},
2254+
PEXPIRETIME: {
2255+
syntax: 'PEXPIRETIME key',
2256+
summary:
2257+
'Returns the absolute Unix timestamp (since January 1, 1970) in milliseconds at which the given key will expire.',
2258+
since: '7.0.0',
2259+
url: 'https://redis.io/commands/pexpiretime',
2260+
},
2261+
EVAL_RO: {
2262+
syntax: 'EVAL_RO script numkeys key [key ...] arg [arg ...]',
2263+
summary: "This is a read-only variant of the EVAL command that isn't allowed to execute commands that modify data.",
2264+
since: '7.0.0',
2265+
url: 'https://redis.io/commands/eval_ro',
2266+
},
2267+
EVALSHA_RO: {
2268+
syntax: 'EVALSHA_RO sha1 numkeys key [key ...] arg [arg ...]',
2269+
summary:
2270+
"This is a read-only variant of the EVALSHA command that isn't allowed to execute commands that modify data.",
2271+
since: '7.0.0',
2272+
url: 'https://redis.io/commands/evalsha_ro',
2273+
},
22432274
};

0 commit comments

Comments
 (0)