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.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/uQ_KbpwKgYcJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to