Skip to content

Latest commit

 

History

History
 
 

episode-115

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
Railscasts Episode #115: Caching in Rails 2.1

http://railscasts.com/episodes/115


Console Commands

  Rails.cache.write('date', Date.today)
  Rails.cache.read('date')
  Rails.cache.fetch('time') { Time.now }
  cache = ActiveSupport::Cache.lookup_store(:mem_cache_store)
  product = Product.first
  product.cache_key