Sha256: 1b5f068a3a86d1ca993d864e6d68f4a851754d50a9e3e54b44a21b5ee43e6db1

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

cache_it
========

Cache for ActiveRecord objects, backed by ActiveSupport::CacheStore of your choice.  Cache-money was 
not yet ported to Rails 3 so I rolled my own.


Example
=======

class User < ActiveRecord::Base
  cache_it do |c|
    c.index :first, :last
    c.index :email
  end
end

user = User.cache_it_find :first => "Joe", :last => "Schmoe"
user = User.cache_it_find :email => "joe@example.com"
user.age = 30
user.cache_it_write

Copyright (c) 2011 Rodrigo Vanegas, released under the MIT license

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cache_it-0.0.1 README