RocksDB
The rocksdb is a persistent in-process key-value store.
Read more about it here: http://rocksdb.org/
This gem contains Ruby bindings so that you can use it from your Ruby process.
Installation
First install rocksdb.
Add this line to your application's Gemfile:
gem 'rocksdb-ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rocksdb-ruby
Usage
require "RocksDB"
key = "test"
value = "1"
rockdb = RocksDB.new "/tmp/file"
rockdb.put(key, value)
new_value = rockdb.get(key)
rockdb.delete(key)
rockdb.close
Contributing
- Fork it
- 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 new Pull Request