刘凡 9ff4d1d109 add S3,archive,truncate 2 år sedan
..
README.md 9ff4d1d109 add S3,archive,truncate 2 år sedan
kvstore.py 9ff4d1d109 add S3,archive,truncate 2 år sedan

README.md

SGTKVStore

A work-in-progress simple SGT(Set-Get-Truncate) in-memory Key-Value store server written in python.

Requirements

  • Python 3.7+

Operations

SET <KEY> <VALUE>

GET <KEY>

TRUNCATE <KEY>

Usage

  • This script:
$ python kvstore.py 8888
  • Client (netcat example):
$ nc localhost 8888
SET testkey 1
+OK

$ nc localhost 8888
GET testkey
1

$ nc localhost 8888
GET unknown_key
-ERROR