package opam-core

  1. Overview
  2. Docs

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


module X : ARG


type t = X.t
val save : OpamFilename.t -> t -> unit

Marshal and write the cache to disk

val load : OpamFilename.t -> t option

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

val remove : OpamFilename.t -> unit

Innovation. Community. Security.