Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] stash 0.1.1: work with data structures servers like Redisusing Ruby objects

Reply
Thread Tools

[ANN] stash 0.1.1: work with data structures servers like Redisusing Ruby objects

 
 
Tony Arcieri
Guest
Posts: n/a
 
      11-30-2010
[Note: parts of this message were removed to make it a legal post.]

Stash provides a high-level, abstract interface to data structures servers
like Redis. Presently Redis is the only server supported, but support is
planned for Membase, and potentially Memcache and Kestrel:

https://github.com/tarcieri/stash
<https://github.com/tarcieri/stash>https://rubygems.org/gems/stash

Stash lets you work with Redis Strings, Lists, and Hashes not using an
arcane set of commands, but just like you would with Ruby Strings, Lists,
and Hashes.

After configuring Stash, you can retrieve a list using:

Stash::List[:foobar]

and append to it with:

Stash::List[:foobar] << "baz"

Both Stash::Lists and Stash::Hashes are Enumerable and respond to all your
favorite Ruby Enumerable methods:

Stash::List[:foobar].inject(0) { |i, v| i + v }
Stash::List[:foobar].empty?

--
Tony Arcieri
Medioh! A Kudelski Brand

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] stash 1.0.0: persistent Ruby data structures with Redis Tony Arcieri Ruby 0 12-07-2010 10:04 PM
Stash is a new project Intransition Ruby 0 11-29-2010 07:48 PM
`Job Opportunities · Benefits. What's it like to work in Bangalore?Job Opportunities · Benefits. What's it like to work in Bangalore? \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ >jeni Python 0 08-23-2009 06:32 AM
structures, structures and more structures (questions about nestedstructures) Alfonso Morra C Programming 11 09-24-2005 07:42 PM
Type Casting IPv4 and IPv6 structures to Generic Structures tweak C Programming 14 06-11-2004 02:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57