Skip to content

Commit

Permalink
Merge branch 'typos' of https://github.com/wcmaier/redis-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Feb 24, 2011
2 parents efbf09a + 9d0128b commit 8afef4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions topics/protocol.md
Expand Up @@ -48,7 +48,7 @@ See the following example:
This is how the above command looks as a quoted string, so that it is possible
to see the exact value of every byte in the query:

"*3\r\n$3\r\nSET\r\n$5\r\nmykey\r\n$8\r\nmyvalue\r\n"
"*3\r\n$3\r\nSET\r\n$5\r\nmykey\r\n$7\r\nmyvalue\r\n"

As you will see in a moment this format is also used in Redis replies. The
format used for every argument `$6\r\nmydata\r\n` is called a Bulk Reply.
Expand Down Expand Up @@ -171,7 +171,7 @@ always `*`. Example:
s: World

As you can see the multi bulk reply is exactly the same format used in order
to send commands to the Redis server unsing the unified protocol.
to send commands to the Redis server using the unified protocol.

The first line the server sent is `*4\r\n` in order to specify that four bulk
replies will follow. Then every bulk write is transmitted.
Expand Down Expand Up @@ -232,7 +232,7 @@ Before of the Unified Request Protocol Redis used a different protocol to send
commands, that is still supported since it is simpler to type by hand via
telnet. In this protocol there are two kind of commands:

* Inline commands: simple commands where argumnets are just space separated
* Inline commands: simple commands where arguments are just space separated
strings. No binary safeness is possible.
* Bulk commands: bulk commands are exactly like inline commands, but the last
argument is handled in a special way in order to allow for a binary-safe last
Expand Down Expand Up @@ -272,7 +272,7 @@ See for instance the following example:
C: foobar
S: +OK

The last argument of the commnad is '6'. This specify the number of DATA bytes
The last argument of the command is '6'. This specify the number of DATA bytes
that will follow, that is, the string "foobar". Note that even this bytes are
terminated by two additional bytes of CRLF.

Expand Down

0 comments on commit 8afef4d

Please sign in to comment.