Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A synchronous Ruby client for Doozer.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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
Something went wrong with that request. Please try again.