Topic: about the cache

hi, guys
I have develop a small ror application, and I want to add some cache in my web application to improve the speed.
for example, i have a controller as following

def index
  @xxx = Xxxs.find(:all)

def action1
  @xxx = Xxxs.find(:all)

In each action I need the data of @xxx, so I want to get the data @xxx when the first request of 'index', and put them in memroy. So when the request of 'action1' or any other actions, the @xxx could be get from memory. It will be more fast then get the data @xxx from mysql..

could any one give me some suggestion? please send me email to


Re: about the cache

Look into MemCached. I think it's what you want.

Railscasts - Free Ruby on Rails Screencasts