package ocsigenserver

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

8.0.0.tar.gz
md5=be7a28e3a79cc028d35c88eca538ee8b
sha512=08cdaab31864aeba743ad0c03077a6eccf1089e7b7c4078045dab9409d409144b70cc546df7881b64b780689eee642ca2391be84ab2a6a8ffee0fbed2ad5ac98

doc/ocsigenserver.baselib/Ocsigen_base/Cache/index.html

Module Ocsigen_base.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.