module Bootsnap::CompileCache

Public Class Methods

setup(cache_dir:, iseq:, yaml:) click to toggle source
# File lib/bootsnap/compile_cache.rb, line 3
def self.setup(cache_dir:, iseq:, yaml:)
  if iseq
    require_relative 'compile_cache/iseq'
    Bootsnap::CompileCache::ISeq.install!(cache_dir)
  end

  if yaml
    require_relative 'compile_cache/yaml'
    Bootsnap::CompileCache::YAML.install!(cache_dir)
  end
end