Sha256: 58ed5a837b26e895d39f27d68fa4b275e3e68a0a858d5e9340c6add1b6f4786f
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
# Tiny Cache ## for Rails3+ model cache ## 使用方法 usage: * config config/initializers 下新建 tiny_cache.rb ``` # -*- encoding : utf-8 -*- TinyCache.configure do |config| config.cache_store = ::Rails.cache end ``` * 在model 中调用 ``` module Ruby800 class Board < ActiveRecord::Base self.acts_as_tiny_cached # self.acts_as_tiny_cached :version => 2, :expires_in => 2.weeks end end ``` * 生成的实例方法 ...
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
tiny-cache-0.0.3 | README.md |
tiny_cache-0.0.3 | README.md |