package hc
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Parameter Mk.Cache
val create : int -> 'a tcreate n creates a new, empty cache, with initial size n. For best results, n should be on the order of the expected number of elements that will be in the cache. The cache must grow as needed, so n is just an initial guess.
val clear : 'a t -> unitEmpty a cache.
find cache v returns the current binding of v in cache, or must raise Not_found if v is not in cache.
val length : 'a t -> intlength cache returns the number of bindings in cache.
val stats : 'a t -> Hashtbl.statisticsstats cache return statistics about the cache cache.