command
module
Version:
v0.0.0-...-4759e42
Opens a new window with list of versions in this module.
Published: Aug 27, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Tiny-Redis
Yet another Godis, inspired by Godis && Build Your Own Redis.
References
The SO_REUSEPORT socket option
https://lwn.net/Articles/542629/
RESP Protocol
https://redis.io/docs/reference/protocol-spec/
Response
Using CRLF("\r\n") as separator.
-
+
: simple string, example: "+OK\r\n"
-
-
: simple error, example: "-Error message\r\n"
-
:
: integers, example: ":100\r\n"
-
$
: bulk string, example: "$6\r\nfoobar\r\n"
-
*
: array, examle: "*2\r\n$3\r\nfoo\r\n$3\r\nbar\r\n"
Inline Command
"set key val\r\n"
Don't support key or value contains whitespace!
MultiBulk Command
"*3\r\n$3\r\nset\r\n$3\r\nfoo\r\n$3\r\nbar\r\n"
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.