Skip to content

tomash/flyingv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 © 2010 Tomasz Stachewicz. See LICENSE for details.

About

Ruby wrapper for OpenKeyVal restful API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages