I know Rails.cache
is ActiveSupport::Cache::MemoryStore
, and it is not thread safe.
I don't understand, why rails use a thread-unsafe cache as its default? Why not use ActiveSupport::Cache::SynchronizedMemoryStore
? In my opinion, in a web site, if a cache is not thread-safe, it almost useless, because the requests are not handled in ONE thread.
Do you use Rails.cache
in you webapp? And how do you use it?