package ocsigenserver

  1. Overview
  2. Docs
A full-featured and extensible Web server

Install

Dune Dependency

Authors

Maintainers

Sources

6.0.0.tar.gz
md5=001e22ec2da3ab08840f934a8f005859
sha512=59f36fdf0a640117aa562d1d9ef96b7146843d9b72d71d01366640521405550074e03267fb388c5e685542781fc4bce763818a36cf05c0e033fae5e51c2f1496

doc/ocsigenserver.baselib/Ocsigen_cache/index.html

Module Ocsigen_cacheSource

Cache. Association tables (from any kind of database) that keep the most recently used values in memory. It is also possible to set a maximum lifetime for data in the cache.

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 up function 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 Vincent Balat
  • author Raphaël Proust (adding timers)
Sourcemodule Make (A : sig ... end) : sig ... end
Sourceval clear_all_caches : unit -> unit

Clear the contents of all the existing caches

Sourcemodule Dlist : sig ... end

Doubly-linked lists with maximum number of entries, and (possibly) limited lifespan for entries.

OCaml

Innovation. Community. Security.