lib/bootsnap/compile_cache.rb



require_relative 'compile_cache/iseq'
require_relative 'compile_cache/yaml'

module Bootsnap
  module CompileCache
    def self.setup(cache_dir:, iseq:, yaml:)
      if iseq
        Bootsnap::CompileCache::ISeq.install!(cache_dir)
      end

      if yaml
        Bootsnap::CompileCache::YAML.install!(cache_dir)
      end
    end
  end
end