Stog library reference documentation : Stog_cache.Cache

Module type Stog_cache.Cache

module type Cache = sig .. end

type t 
The type of the information associated to each element in the cache.
val name : string
The name of the cache, used in for the directory name where information is cached.
val load : Stog_types.elt -> t -> unit
This function is called when an element is read from the cache.
val store : Stog_types.elt -> t
This function provides the information to associate to an element to store it in the cache.