Readthis v2.0.0 Release Notes

Release Date: 2016-07-27 // almost 6 years ago
    • 💥 Breaking: nil values are now rejected from read_multi output by default. Previously nil values were always preserved when fetching with read_multi. This differed from the ActiveSupport::Cache base behaviour and caused bugs in Rails 5.0. More details can be seen at readthis#39.

    The old fetching behaviour, with nil intact, can be achieved by passing the retain_nils flag:

    cache.read_multi('a', 'b', retain_nils: true)
    

    This can also be set as a global option to retain backward compatibility:

    config.cache_store = :readthis_store, { retain_nils: true }