filekv is a simple, file-based key-value store which uses csv from the Ruby standard library to store data on a key-value model in a file. Moreover, it supports lists, hashes, sets, etc. by means of JSON serialization (from stdlib json).
It is modeled as a drop-in replacement for redis-rb. In other words, it can be used, to some extent, as an alternative data storage means by applications designed for Redis.
Naturally, it does not replicate the entire featureset of Redis, and so applications should bear this in mind.
Some basic usage:
require 'filekv' db = FileKV.new 'moo.db' db.set 'foo', 'bar' db.get 'foo' # => "bar"
filekv was written by Autumn Perrault.
filekv is distributed under the terms of the MIT license. Please see the