bojack

Installation
Requirements
- The latest version of Crystal (0.18.x).
- LLVM development files.
Steps
- Clone the repo:
git clone https://github.com/marceloboeira/bojack
- Switch to repo-directory:
cd bojack
- Build:
make install
(sudo for linux users)
Showtime
- Run:
bojack server -p 5000
- Run:
bojack client -p 5000
$ bojack client -p 5000
> set foo bar
bar
> get foo
bar
> ping
pong
Usage
|command|description|params|example|return|
|---|---|---|---|---|---|
|set| sets a key with the given name and value | key, value | set foo bar
| the value of the key "bar" |
|get| gets the value of the given value | key | get foo
| the value stored at the key, "bar" |
|delete| deletes the given key | key, * | delete foo, delete *
| the value at the deleted key "bar" or every key in the database, if "*" is given instead of a key |
|append| add one or more values to the end of a list | key, value | append list foo,bar
| the list resulted |
|pop| retrieve the last item of the list | key | pop foo
| the last value stored at the list, "foo" |
|size| return the number of stored items | -- | size
| the value of stored keys in memory |
|ping| checks the server | -- | ping
| pong if everything is correct |
Contributing
Found a bug? Have a suggestion? Please open an issue.
Want to contribute? Make sure you follow the guide.