Ocsigen

This is a preliminary version of the documentation. Help us to improve it by filling tickets. We are looking for native english speakers to proof read the documentation. Contact us!

Module Ocsigen_cache


module Ocsigen_cache: sig .. end
Cache.Association tables (from any kind of database)that keep the most recently used values in memory.

It is based on a structure of doubly linked lists with maximum size,that keeps only the mostly recently used values first, if you call the upfunction each time you use a value.(Insertion, remove and "up" in time 1).This structure is exported, so that it can be used in other cases.

Not (preemptive) thread safe.
Author(s): Vincent Balat


module Make: 
functor (A : sig
type key 
type value 
end) -> sig .. end
val clear_all_caches : unit -> unit
Clear the contents of all the existing caches
module Dlist: sig .. end
Doubly-linked lists with maximum size.