module ActiveSupport::Cache::RedisCacheStore::LocalCacheWithRaw

def write_entry(key, entry, options)

def write_entry(key, entry, options)
  if options[:raw] && local_cache
    raw_entry = Entry.new(serialize_entry(entry, raw: true))
    raw_entry.expires_at = entry.expires_at
    super(key, raw_entry, options)
  else
    super
  end
end