ActiveModel based object persisting library for Redis key-value database.
- ActiveModel compatibility
- Race condition free operations
A lot. ActiveRedis is currently designed to handle concurrency issues. Use OHM or remodel if you need advanced features and can accept some potential concurrency issues.
- Indexes
- Relations
- Other cool stuff
- Clone the repository
- Fetch submodules
- Install Rails 3 gem (latest preview release)
- Run rake redis:start
- Run rake console
Then try out something like
>> c = Cat.new :age=>12, :name => "long"
=> #<Cat:0x1015021f0 @attributes={"name"=>"long", "age"=>"12"}>
>> c.save
=> true
>> Cat.count
=> 1
>> Cat.find(1)
=> #<Cat:0x10121ff78 @attributes={"name"=>"long", "age"=>"12"}, @id=1>
Check Persisting Objects in Redis Key-Value Database for some design principles of ActiveRedis.
Pull requests are welcome!
For any questions contact matti.paksula@cs.helsinki.fi