mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3b71f3eb68
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. |
||
---|---|---|
.. | ||
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 | ||
coder_test.rb | ||
local_cache_middleware_test.rb |