Sha256: de65665b1c0dbee4680e8b13ea154fc33edaa70549a76cc7fda651f23f1a057f
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
[![Gem Version](https://badge.fury.io/rb/spara.svg)](http://badge.fury.io/rb/spara) [![Build Status](https://travis-ci.org/kodnin/spara.svg?branch=master)](https://travis-ci.org/kodnin/spara) # Spara A simple key-value database written in Ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem 'spara' ``` And then execute: $ bundle Or install it yourself as: $ gem install spara ## Usage Require the gem in your project or ```irb```, instantiate a new key-value database, set and get values using keys: ```ruby require 'spara' # => true db = SparaDisk.new('test.db') # => #<SparaDisk> db.set('name', 'kodnin') # => 'kodnin' db.get('name') # => 'kodnin' ``` ```SparaDisk``` writes the data to disk (using PStore), ```SparaMem``` keeps the data in memory. ## Contributing 1. Fork it ( https://github.com/kodnin/spara/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spara-0.0.2 | README.md |