Using ActiveRecord's query_cache for fun and profit

I need to store some data on a request basis and I was wondering how BAD
would it be to just stick it into ActiveRecord’s query_cache. The way I
see
it, all the hard stuff is already done, like thread-safety. Suggestions?

ActiveRecord::Base.connection.query_cache[‘some’][‘var’] = 42

later

ActiveRecord::Base.connection.query_cache[‘some’][‘var’]

Thank you.

Why not stick it into the session?


Dheeraj K.