/spike-kv

Key-value database powered by elixir

Primary LanguageElixirApache License 2.0Apache-2.0

Spike kv

Build Status

Usage

$ git clone https://github.com/thiamsantos/spike.git
$ cd spike
$ mix run --no-halt

Now in another window open a connection with the tcp socket:

$ nc 127.0.0.1 4040 # or telnet 127.0.0.1 4040

Example

SET cool_key awesome
:OK
GET cool_key
:OK $7 awesome

Available commands

  • SET. Ex: SET key value
  • GET. Ex: GET key
  • DEL. Ex: DEL key
  • PING. Ex: PING hello world
  • EXISTS. Ex: EXISTS key

License

Apache License, Version 2.0 © Thiago Santos