Fetching some data to ruby object periodically?
I know it looks like a silly question , but how am I supposed to fetch some data to ruby object periodically ? or after number of tries , 

Lets say I have : 

     @variable = SomeModel.all 

and I don't wanna fetch the results all the time so I can do 

     @variable ||= SomeModel.all 

But how am I supposed to do that every periodic time without using something like memcache or 3rd party solution ? Any tricky way to do such a thing ? 

Thanks .      
Fetching some data to ruby object periodically?
===

I know it looks like a silly question , but how am I supposed to fetch some data to ruby object periodically ? or after number of tries , 

Lets say I have : 

     @variable = SomeModel.all 

and I don't wanna fetch the results all the time so I can do 

     @variable ||= SomeModel.all 

But how am I supposed to do that every periodic time without using something like memcache or 3rd party solution ? Any tricky way to do such a thing ? 

Thanks .      