package opam-core

  1. Overview
  2. Docs

Module OpamCached.MakeSource

Module handling a simple marshalled cache for a given data structure. A magic number is added to validate the version of the cache.

Parameters

module X : ARG

Signature

Sourcetype t = X.t
Sourceval save : OpamFilename.t -> t -> unit

Marshal and write the cache to disk

Sourceval load : OpamFilename.t -> t option

Load the cache if it exists and is valid and compatible with the current binary. Clear it otherwise.

Sourceval remove : OpamFilename.t -> unit
OCaml

Innovation. Community. Security.