0.0
No commit activity in last 3 years
No release in over 3 years
Adapter for LevelDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.5.2
 Project Readme

adapter-leveldb

LevelDB adapter for use with the adapter or toystore gem.

Usage

require 'adapter/leveldb'

client  = LevelDB::DB.new('/tmp/leveldb-testing')
adapter = Adapter[:leveldb].new(client)
adapter.clear

adapter.write('foo', 'bar')
puts 'Should be bar: ' + adapter.read('foo').inspect

adapter.delete('foo')
puts 'Should be nil: ' + adapter.read('foo').inspect

adapter.write('foo', 'bar')
adapter.clear
puts 'Should be nil: ' + adapter.read('foo').inspect

puts 'Should be bar: ' + adapter.fetch('foo', 'bar')