It seems that you are executing commands on telnet. In principle, redis implements text commands based on a low-level text protocol; a request / response can contain several text strings with a prefix of special characters, such as $ *, or characters with a prefix of its length.
And for convenience, redis also supports built-in commands :
For this reason, Redis also accepts commands in a special way that is designed for people, and is called the command line format. (see here )
The first command you entered is a built-in command , it works. The second has spaces, not a built-in command , and then is broken.
So you can use the inline command to send the set command with spaces:
*3 $3 set $8 billybob $15 hey how are you +OK
Reidis Protocol Documentation
source share