Created
November 2, 2021 00:36
-
-
Save jjb/dac1763d888e3f837ff31e011a026def to your computer and use it in GitHub Desktop.
How to work with raw compressed cache data in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raw = Rails.cache.redis.get( Rails.cache.redis.keys.first) | |
Marshal.load raw | |
Marshal.load(raw).instance_variable_get :@value | |
Zlib::Inflate.inflate Marshal.load(raw).instance_variable_get :@value | |
Marshal.load Zlib::Inflate.inflate Marshal.load(raw).instance_variable_get :@value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment