1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/cache/stores
Alex Ghiculescu 25b47c25ba Optimized Cache::Entry should support old dalli_store values
Same bug as https://github.com/rails/rails/pull/42559, but a very different fix due to https://github.com/rails/rails/pull/42025. To recap, the issue:

- While using the `dalli_store`, you set any value in the Rails cache with no expiry.
- You change to the `mem_cache_store`.
- You upgrade to Rails 7.
- You try to read the same cache key you set in step 1, and it crashes on read.

https://github.com/rails/rails/pull/42025 was backward compatible with entries written using the `mem_cache_store`, but *not* the `dalli_store` which did not use `ActiveSupport::Cache::Entry`. This PR attempts to fix that.
2021-06-22 15:17:33 -05:00
..
file_store_test.rb Test cleanup for cache store tests 2021-06-22 13:48:06 -05:00
mem_cache_store_test.rb Optimized Cache::Entry should support old dalli_store values 2021-06-22 15:17:33 -05:00
memory_store_test.rb disable compression for MemoryStore's by default 2020-11-04 12:20:24 -05:00
null_store_test.rb allow running each test with pure ruby path/to/test.rb 2019-12-18 08:49:19 -06:00
redis_cache_store_test.rb Test cleanup for cache store tests 2021-06-22 13:48:06 -05:00