Module Superbol_free_lib.Command_cache

Inspecting, filling and reclaiming the caches the LSP server writes.

module CACHE = Superbol_cache.Cache
val size_n_unit : int64 -> float * string
val pp_size : int64 Fmt.t
val pp_age : Stdlib.Format.formatter -> float -> unit
type location = {
  1. dir : string;
  2. is_root : bool;
  3. storage_directory : string option;
}

Where to look for a cache: dir, and whether it was given as the root of the project, rather than as some directory within it.

val with_cache : location -> (rootdir:string -> (string * Superbol_cache.Cache.t) option -> 'a) -> 'a

with_cache location f is f ~rootdir cache, where rootdir is the root of the project at location, and cache the location and handle of its cache, if any.

val json_int64 : int64 -> [> `Intlit of string ]
val json_of_stats : Superbol_cache.Types.stats -> (string * [> `Int of int | `Intlit of string | `String of string ]) list
val json_of_entry_info : Superbol_cache.Types.entry_info -> [> `Assoc of (string * [> `Float of float | `Int of int | `Intlit of string | `String of Superbol_cache.Types.key ]) list ]
val output_json : rootdir:string -> cache_root:string option -> (string * Yojson.Safe.t) list -> unit
val stats : CACHE.t -> cache_root:string -> Superbol_cache.Types.stats
val status : json:bool -> verbose:bool -> location -> unit
val trim : json:bool -> older_than:float option -> max_size:int64 option -> location -> unit
val location_args : unit -> (unit -> location) * (string list * Ezcmd.V2.EZCMD.TYPES.Arg.spec * Ezcmd.V2.EZCMD.TYPES.info) list
val json_arg : bool Stdlib.ref -> string list * Ezcmd.V2.EZCMD.TYPES.Arg.spec * Ezcmd.V2.EZCMD.TYPES.info
val location_man : [> `P of string ]
val status_cmd : Ezcmd.V2.EZCMD.TYPES.sub
val trim_cmd : Ezcmd.V2.EZCMD.TYPES.sub
val client_settings_of_string : string -> (string * Yojson.Safe.t) list
val analyze_cmd : Ezcmd.V2.EZCMD.TYPES.sub