Sha256: 981acd5a293efa2de877cad623b4492900b0d41ba50dc8dfb53e4a63ad4b9712

Contents?: true

Size: 998 Bytes

Versions: 1

Compression:

Stored size: 998 Bytes

Contents

[![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.1 README.md