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.polytables/Polytables/index.html

Module Polytables

Polymorphic tables (using Map)

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

Warning: this module is not thread safe!

type 'a key

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

type t

The type of tables

val create : unit -> t

creates a new table

val make_key : unit -> 'a key

create a new key for each data you want to save

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

set t k v associates v to k in t

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

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

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

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

val clear : table:t -> unit

clear t remove all data from t

OCaml

Innovation. Community. Security.