package ocsigenserver

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

Install

Dune Dependency

Authors

Maintainers

Sources

5.1.2.tar.gz
md5=cc9afaa6cad28fb2b6c803ed6cec308f
sha512=9096bc31a55f9d47f5f9b708b16d8b32cfcab99e514bce086046cf78e9731076bf2adac7e68b4291f3a0e65048e70e7c43fa2df8b80ae0eed62840db3e216b77

doc/ocsigenserver.polytables/Polytables/index.html

Module PolytablesSource

Polymorphic tables (using Map)

  • author Vincent Balat
  • author Jérôme Vouillon

Warning: this module is not thread safe!

Sourcetype 'a key

The type of key for a piece of data of type 'a

Sourcetype t

The type of tables

Sourceval create : unit -> t

creates a new table

Sourceval make_key : unit -> 'a key

create a new key for each data you want to save

Sourceval set : table:t -> key:'a key -> value:'a -> unit

set t k v associates v to k in t

Sourceval get : table:t -> key:'a key -> 'a

get t k returns the current binding of k in t or raises Not_found

Sourceval remove : table:t -> key:'a key -> unit

remove t k remove the current binding of k in t if it exists

Sourceval clear : table:t -> unit

clear t remove all data from t

OCaml

Innovation. Community. Security.