Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 971 Bytes

README.md

File metadata and controls

63 lines (46 loc) · 971 Bytes

Pocket

An Experimental In Memory Key Value written in Elixir built on top of GenServer and TCP protocol

Note !!!

this project is only for the purpose of having fun with Elixir's GenServer and Elixir's Map 😜

Todo

  • Handle Concurrent users
  • Add more data type support
  • More error handling

Installation

Clone Pocket

$ git clone https://github.com/Bhinneka/pocket

Compile Pocket

$ iex -S mix

Configuration

If you want to change Pocket's default config, Open config.ex inside config folder

config :pocket, ip: {y,o,u,r,i,p}
config :pocket, port: 8000

Usage

Run Pocket

iex(1)> Pocket.start([], [])

Open new terminal

$ telnet 127.0.0.1 9000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Add new value

SET a andi
OK
GET a
andi

Author

Wuriyanto https://github.com/wuriyanto48

Bhinneka.com 2018