1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/cache
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
..
strategy Refactor LocalCache to avoid calling Marshal.dump as much (take 2) 2021-04-19 10:22:48 +02:00
file_store.rb Refactor Cache::Entry compression handling 2021-04-22 13:46:46 +02:00
mem_cache_store.rb Implement an optimized Cache::Entry coder 2021-04-25 08:27:58 +02:00
memory_store.rb Implement an optimized Cache::Entry coder 2021-04-25 08:27:58 +02:00
null_store.rb Introduce keyword arguments for some AS::Cache methods 2019-09-03 17:48:40 +09:00
redis_cache_store.rb Implement an optimized Cache::Entry coder 2021-04-25 08:27:58 +02:00