serva
Serva
Key Value Server to persist key value data.
Installation
First go into a terminal with crystal installed:
crystal --version crystal init app *appname*
Go into the shards.yml file and copy the following dependency:
dependencies:
serva:
github: randiaz95/serva
branch: master
Then...
shards install
Now you can: require "serva"
Usage
require "Serva"
# Test connection
e = Serva::Engine.new("sqlite3://data.db")
# Print non-existing key
puts e["missing_key"]
# Try to create a new key and then get it
e["new_key"] = "new_value"
puts e["new_key"]
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/randiaz95/serva/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Randy Diaz - creator and maintainer
Repository
serva
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- about 5 years ago
- August 25, 2020
License
MIT License
Links
Synced at
Sun, 26 Oct 2025 00:10:12 GMT
Languages