package git

  1. Overview
  2. Docs

Global cache of values

val set_size : int -> unit

Empty the current LRU cache, and create a new one with the given size.

val clear : unit -> unit

Empty the cache.

val find : Hash.t -> t option

Cache an inflated values. This is used by various operations, so it could be useful to look into it to speed-up operations which needs to search a pack file.

val find_inflated : Hash.t -> string option

Same as find but store the inflated representation of the value.

val add : Hash.t -> t -> unit

Cache a value.

val add_inflated : Hash.t -> string -> unit

Cache an inflated value.


Innovation. Community. Security.