RedisRecord

ActiveRecord-like API for Objects stored in Redis.

Usage

require 'lib/redis_record'

class User
  attr_accessor :email, :username

  extend RedisRecord
  use_redis
end

u = User.new
u.email = "email@example.com"
u.username = "thk"
u.save
puts u.id # => 1

u_new = User.find(1)