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/behaviors
Jean Boussier 3b71f3eb68 Implement an optimized Cache::Entry coder
Active Support's cache have for long been limited because
of its format. It directly serialize its `Entry` object with
`Marshal`, so any internal change might break the format.

The current shortcommings are:

  - The minimum entry overhead is quite ridiculous:
    `Marshal.dump(ActiveSupport::Cache::Entry.new("")).bytesize # => 107`
  - Only the internal `value` is compressed, but unless it's a String, to do so
    it first need to be serialized. So we end up with `Marshal.dump(Zlib.deflate(Marshal.dump(value)))`
    which is wasteful.
2021-04-25 08:27:58 +02:00
..
cache_delete_matched_behavior.rb
cache_increment_decrement_behavior.rb activesupport: Avoid Marshal.load on raw cache value in RedisCacheStore 2020-05-15 15:38:33 -07:00
cache_instrumentation_behavior.rb Instrument cache store name 2020-10-21 22:44:14 +01:00
cache_store_behavior.rb Implement an optimized Cache::Entry coder 2021-04-25 08:27:58 +02:00
cache_store_coder_behavior.rb Fix spelling 2020-12-27 04:09:49 +10:00
cache_store_version_behavior.rb
connection_pool_behavior.rb Allow cache tests to be run in parallel 2020-01-24 09:54:55 -08:00
encoded_key_cache_behavior.rb activesupport: Avoid Marshal.load on raw cache value in RedisCacheStore 2020-05-15 15:38:33 -07:00
failure_safety_behavior.rb
local_cache_behavior.rb Add a test case for race_condition_ttl with local_cache enabled 2021-04-13 18:07:12 +02:00