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

T

Tony Arcieri

[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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top