Skip to content

uchenily/tredis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tredis

实现一个极其简单的kv数据库, 数据只保存在内存.

开始

make
make run

演示

(venv) [root@archlinux tredis]# make run
./tredis
==> help
Tiny redis works in memory.

USAGE:
  get [key]
  set [key] [value]
  del [key]
  quit
==> set key1 value1
OK
==> get key1
value1
==> get key2
(nil)
==> del key1
==> get key1
(nil)
==> quit