We're hiring!

What’s new in Ohm 0.1.0

by Cyril David on October 1, 2010

Ohm 0.1.0 is out and listed in this post are the most important changes. It’s important to note that it requires Redis 2.0.0 or better, and as usual the documentation can be found at http://ohm.keyvalue.org.

Hashes

Model attributes are now stored using Redis hashes. If you have been following Redis closely, this also means that you get huge memory savings for free. The main Redis key space will also be a lot less cluttered.

From an API perspective, you probably won’t notice a significant change. If you plan to upgrade to Ohm 0.1.0, you simply have to execute the code:

Nest

In Ohm 0.0.x, most raw Redis operations were done using the following approach:

Ohm 0.1.0 introduces a dependency called Nest. Aside from making the API a little more object oriented, it also allows you to create key hierarchies in a very terse manner. Let’s see the example above written in the new style:

Array Syntax in Lists

Getting a subset of an existing List was possible only through raw Redis commands. If you had something like:

Ohm 0.1.0 introduces a syntax similar to Ruby’s standard Array#[] method. The example above would be:

Improved Documentation and Tutorials

We believe in good documentation, so much that we have spent a lot of time improving the API Documentation.

In addition, since a lot of people learn best through examples, we’ve written up a couple of tutorials to help you get up to speed and get some insight on the different design philosophy that comes with using Ohm and Redis.

If you have any questions, problems or suggestions just head up to #ohm at irc.freenode.net or checkout our Google group.

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>