刘凡 9ff4d1d109 add S3,archive,truncate | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
kvstore.py | 2 years ago |
A work-in-progress simple SGT(Set-Get-Truncate) in-memory Key-Value store server written in python.
SET <KEY> <VALUE>
GET <KEY>
TRUNCATE <KEY>
$ python kvstore.py 8888
$ nc localhost 8888
SET testkey 1
+OK
$ nc localhost 8888
GET testkey
1
$ nc localhost 8888
GET unknown_key
-ERROR