redis-doc icon indicating copy to clipboard operation
redis-doc copied to clipboard

ASKING is not documented

Open hubo1016 opened this issue 10 years ago • 2 comments

http://redis.io/topics/cluster-spec says that there should be an "asking" command when client is redirected by -ASK. But the command does not appear in commands document. Neither do the reference implementation implements the command.

  1. Is the command still not implemented?
  2. If the command is designed, what is the scope of "ASKING"? When will the asking status be cleared? Should there be a "NOTASKING" command?

hubo1016 avatar Mar 29 '16 13:03 hubo1016

The command does seem to be implemented on the server:

127.0.0.1:6379> FOOBAR
(error) ERR unknown command 'FOOBAR'
127.0.0.1:6379> ASKING
(error) ERR This instance has cluster support disabled
127.0.0.1:6379> RESTORE-ASKING
(error) ERR wrong number of arguments for 'restore-asking' command

The REPL even hints that it accepts an argument. But, yeah, it's definitely undocumented. A similar RESTORE-ASKING command, seemingly the only command with a hyphen in the first clause, also exists.

tlhunter avatar Dec 13 '18 19:12 tlhunter

Yep, these and other commands are missing the documentation. Here's an open issue about it: https://github.com/antirez/redis-doc/issues/974

itamarhaber avatar Dec 14 '18 13:12 itamarhaber

https://redis.io/commands/asking/

mich-elle-luna avatar Dec 22 '23 17:12 mich-elle-luna