From 9a8aca55ba18f4cd620bc46a9d72975e1fc1b987 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Wed, 13 Mar 2019 21:40:43 +1000 Subject: [PATCH] Updated README --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 59d772f..7d7367c 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,38 @@ $ bitcask -p /tmp/db get Hello World ``` +## Usage (server) + +There is also a builtin very simple Redis-compatible server called `bitcaskd`: + +```#!bash +$ ./bitcaskd ./tmp +INFO[0000] starting bitcaskd v0.0.7@146f777 bind=":6379" path=./tmp +``` + +Example session: + +``` +$ telnet localhost 6379 +Trying ::1... +Connected to localhost. +Escape character is '^]'. +SET foo bar ++OK +GET foo +$3 +bar +DEL foo +:1 +GET foo +$-1 +PING ++PONG +QUIT ++OK +Connection closed by foreign host. +``` + ## Performance Benchmarks run on a 11" Macbook with a 1.4Ghz Intel Core i7: