Cache expensive request

Is there a (simple) way to cache the result of an expensive 'find' ? At the moment, I use the 'session' hash, but I don't feel this is the right way to do it ...

thx for the help. Bartocc

The best way would be to install memcached, and use memcache_client (and perhaps acts_as_cached) to manage your caching needs. Best, because it’ll scale as the application grows. Setting a class variable with the data (@@var ||= find …) could be a temp solution [at least until you have multiple ruby instances of your app running].

Vish