ASKING is not documented
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.
- Is the command still not implemented?
- If the command is designed, what is the scope of "ASKING"? When will the asking status be cleared? Should there be a "NOTASKING" command?
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.
Yep, these and other commands are missing the documentation. Here's an open issue about it: https://github.com/antirez/redis-doc/issues/974
https://redis.io/commands/asking/