package calculon

  1. Overview
  2. Docs
type key = private string
type value =
  1. | StrList of string list
  2. | Int of int
type factoid = {
  1. key : key;
  2. value : value;
}
type t
val key_of_string : string -> key option
type op =
  1. | Get of key
  2. | Set of factoid
  3. | Set_force of factoid
  4. | Append of factoid
  5. | Remove of factoid
  6. | Incr of key
  7. | Decr of key
val parse_op : prefix:string -> string -> (op * string option) option

op + hilight

val string_of_value : value -> string
val string_of_op : op -> string
val plugin : Plugin.t
val set_max_cardinal_for_force : int -> unit

set_max_cardinal_for_force n prevents Set_force for keys with more than n factoids, to not lose too much data.

OCaml

Innovation. Community. Security.