You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: schedule.rb
    path of file: ./repos/sidecloq/lib/sidecloq
    
    the code of the file until where you have to start completion: module Sidecloq
  # Schedule loads and parses recurring job specs from files, hashes,
    
    def save_all_to_redis
      redis do |r|
        @job_specs.each do |name, spec|
          r.hset(REDIS_KEY, name, spec.to_json)
        end
      end
    end