![]() The output is no longer written to the terminal. Note that (integer) is omitted from the output because redis-cli detects For all other outputs it will auto-enable the raw output mode, as in the following example: $ redis-cli INCR mycounter > /tmp/output.txt Redis-cli only shows additional information for human readability when it detects the standard output is a tty, or terminal. This additional information may not be ideal when the output of redis-cli must be used as input of another command or redirected into a file. Since Redis replies are typed (strings, arrays, integers, nil, errors, etc.), you see the type of the reply between parentheses. To run a Redis command and return a standard output at the terminal, include the command to execute as separate arguments of redis-cli: $ redis-cli INCR mycounter This topic covers the different aspects of redis-cli, starting from the simplest and ending with the more advanced features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |