A synchronous Ruby client for Doozer.
Ruby
Pull request Compare This branch is 16 commits ahead, 10 commits behind dylanegan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
lib/fraggle
.gitignore
Gemfile
README.md
Rakefile
fraggle-block.gemspec

README.md

Fraggle::Block

A synchronous Ruby client for Doozer.

Usage

>> require 'rubygems'
>> require 'fraggle/block'
>> client = Fraggle::Block.connect
=> #<Fraggle::Block::Client:0x10217b260 @connection=#<Fraggle::Block::Connection:0x10217bbc0 @cn=#<TCPSocket:0x10217b3c8>, host"127.0.0.1", port8046
>> res = client.set(1_000_000, '/foo', 'test')
=> Fraggle::Block::Response tag: 0, flags: 3, rev: 482
>> res = client.get(res.rev, '/foo')
=> Fraggle::Block::Response value: "test", tag: 0, flags: 3, rev: 482
>> res = client.del(res.rev, '/foo')
=> Fraggle::Block::Response tag: 0, flags: 3
>> client.disconnect
=> nil 

See examples for more.

Install

$ gem install fraggle-block