gmem

command module
v0.0.0-...-79084ad Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 13 Imported by: 0

README

GMem

尝试 go 做一个简易版的 memory cache 实现

RESP协议

In RESP, the first byte determines the data type:

  • For Simple Strings, the first byte of the reply is "+"
  • For Errors, the first byte of the reply is "-"
  • For Integers, the first byte of the reply is ":"
  • For Bulk Strings, the first byte of the reply is "$"
  • For Arrays, the first byte of the reply is "*"

v0.1

  1. 实现 object, list, dict 基础数据结构
  2. 实现事件循环 aeEventLoop
  3. 参考 RESP 协议,实现流式读取&写入
  4. 命令表实现 COMMANDSETGET

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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