刘凡 9ff4d1d109 add S3,archive,truncate | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=2) %!d(string=hai) anos | |
kvstore.py | %!s(int64=2) %!d(string=hai) anos |
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