class ActiveSupport::Cache::RedisCacheStore

def write_multi_entries(entries, expires_in: nil, **options)

Nonstandard store provider API to write multiple values at once.
def write_multi_entries(entries, expires_in: nil, **options)
  if entries.any?
    if mset_capable? && expires_in.nil?
      failsafe :write_multi_entries do
        redis.with { |c| c.mapped_mset(serialize_entries(entries, raw: options[:raw])) }
      end
    else
      super
    end
  end
end