Skip to content

HotPotatoC/kvstore

Repository files navigation

kvstore

An experimental key-value database server that is compatible with the redis RESP protocol.

Getting started

Simply run the following command to start the server:

go run cmd/kvstore-server/main.go

To connect to the server, currently the kvstore-cli is yet to be implemented. So for now, you can use the redis-cli command to connect to the server.

redis-cli -p 7275 # Default kvstore server port is 7275

Current available commands are:

  • SET key value
  • GET key
  • DEL key
  • KEYS pattern
  • PING
  • FLUSHALL
  • CLIENT [ID | INFO | LIST | KILL <id | addr | user> <value> | GETNAME | SETNAME <name>]

To Do

  • Pipelining commands
  • AOF
  • ACL
  • Clustering
  • Implement kvstore-cli

NOTE

This project is not targeted for production use. This is only a proof of concept

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Support

Buy Me A Coffee