Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: faa46b317f
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (15 sloc) 0.525 kB

RedisColumn

Seamlessly extend your AR model with Redis

The RedisColumn gem allows for the seamless integration of Redis within your ActiveRecord model in order to store heavy objects away from tables with a lot of rows.

Installation

gem install redis-column

Usage

Within an initializer:

RedisColumn.config = YAML.load_file(Rails.root.join('config/redis.yml'))[:development]

Within your model:

class Page < ActiveRecord::Base
  redis_column :body
end
Jump to Line
Something went wrong with that request. Please try again.