1. Overview
  2. Docs

A store composed of a single file on disk to store the current head

type t

The type of the singleton store.

val read : t -> L2block.hash option Lwt.t

Reads the current value from the disk. Returns None if the file does not exist or if it is corrupted.

Write the value to disk.

val delete : t -> unit Lwt.t

Deletes the value from the disk.