RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Redis_orm: Yet Another ORM for Redis

I used a couple of gems to work with Redis key-value store (redis-objects, dm-redis-adapter with dm-core, ohm) but all of them have some drawbacks (even ohm does not have polymorphic associations yet), so I decided to write an ORM for Redis.

redis_orm is compatible with ActiveRecord’s 2.x API (: It supports belongs_to/has_many/has_one, has_many/has_many (HABTM), self-referencing and polymorphic associations, it uses ActiveModel for validation. Also it has create/save/destroy callbacks and indices (to find records by their value rather then to quick access them), dynamic finders and dirty methods (property_changed?/changes). To spawn and kill redis-server properly all tests are written in RSpec. More: source, gem, issue tracker

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in