method
cache
Register or
log in
to add new notes.
szeryf -
August 7, 2009
szeryf -
August 7, 2009
2 thanks
Documentation
This method only returns a cache manager object of sorts, to see what you can do with it, see ActiveSupport::Cache::Store.
0 thanks
Most common use case
Most common use case is probably:
Rails.cache.fetch "some key" do compute some value end
This computes some value and caches it. Subsequent invocations will return cached value (as long as it is still cached).


