# File lib/merb-cache/cache-store/database.rb, line 68 def cache(_controller, key, from_now = nil, &block) _data = CacheModel.cache_get(key) if _data.nil? _expire = from_now ? from_now.minutes.from_now : nil _data = _controller.send(:capture, &block) CacheModel.cache_set(key, Marshal.dump(_data), _expire, false) else _data = Marshal.load(_data) end _controller.send(:concat, _data, block.binding) true end