Project

flyingv

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for interacting with OpenKeyValue key-value storage
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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.