Sha256: 47b9a529b1e2cfa5f659e31e57f0d7665b2d72efd23c40f8d82d63d307725677

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

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')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adapter-leveldb-0.1.0 README.md