Ruby wrapper for OpenKeyVal restful API
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
flyingv.gemspec

README.rdoc

Flying V

FlyingV is a simple Ruby gem for interacting with OpenKeyValue, an open and free-for-all RESTful key-value storage.

Installation

sudo gem install flyingv

Requirements

None. At the moment

Usage

  FlyingV.post("123somekey", "And this is some value, 64kb being its length limit")
=> #<Net::HTTPOK 200 OK readbody=true>

  FlyingV.get("123somekey")
=> "And this is some value, 64kb being its length limit"

It automagically (de-)serializes Arrays and Hashes to/from JSON if it's possible.

  FlyingV.post("123somekey", {"flyingv" => "awesome", "limits" => 65536})
=> #<Net::HTTPOK 200 OK readbody=true>

  FlyingV.get("123somekey")
=> {"limits"=>65536, "flyingv"=>"awesome"}

Of course if you don't want that to happen, just pass a string as value.

Copyright

Copyright © 2010 Tomasz Stachewicz. See LICENSE for details.