package ocsigenserver

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

Install

Dune Dependency

Authors

Maintainers

Sources

4.0.1.tar.gz
md5=acb09f06430cb8eefd83a849af6450af
sha512=f2c5111a02989572a19706ca5238d3740c4c06d97b0e1791ae0e06665666574ada94421d10edee636042984ab9df6357b4febbb4edc34b01e72619027b95bfec

doc/ocsigenserver.baselib/Ocsigen_cache/index.html

Module Ocsigen_cache

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)
module Make (A : sig ... 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 number of entries, and (possibly) limited lifespan for entries.

OCaml

Innovation. Community. Security.