Am trying to use Rails.cache.read and Rails.cache.write helpers during my rspec scenario but it doesn't work. Am using dalli_store for cache store. I wrote
ActionController::Base.perform_caching = true
in any random test scenario and then run only this rspec. And when I jump to the next line to the breakpoint and try to write in console
Rails.cache.write("f", "b") => true
Rails.cache.read("f") => nil
When I do the same thing in console running in dev env - I've got all expected results. It stores the values in cache and returns it