mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
71963b1fc9
Users of `:dalli_store` may have been passing an explicit `nil` parameter for the servers: ```ruby config.cache_store = :dalli_cache, nil, { expires_in: 2.hour, compress: true } ``` If they simply changed `:dalli_cache` and `:mem_cache_store`, the existing code passes `addresses = [nil]` to Dalli (instead of `nil`), which cause exceptions when people try to access the cache: ``` > Rails.cache.fetch('foo') NoMethodError: undefined method `match' for nil:NilClass ``` This change allows users to continue passing the explicit `nil`, making migrations from `:dalli_store` to `:mem_cache_store` simpler. |
||
---|---|---|
.. | ||
file_store_test.rb | ||
mem_cache_store_test.rb | ||
memory_store_test.rb | ||
null_store_test.rb | ||
redis_cache_store_test.rb |