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. |
||
---|---|---|
.. | ||
behaviors | ||
stores | ||
behaviors.rb | ||
cache_entry_test.rb | ||
cache_key_test.rb | ||
cache_store_logger_test.rb | ||
cache_store_namespace_test.rb | ||
cache_store_setting_test.rb | ||
local_cache_middleware_test.rb |