tiny-redis

command module
v0.0.0-...-4759e42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 11 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL