package calculon

  1. Overview
  2. Docs

Module Calculon.Plugin_factoidsSource

Sourcetype key = private string
Sourcetype value =
  1. | StrList of string list
  2. | Int of int
Sourcetype factoid = {
  1. key : key;
  2. value : value;
}
Sourcetype t
Sourceval key_of_string : string -> key option
Sourcetype 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
Sourceval parse_op : prefix:string -> string -> (op * string option) option

op + hilight

Sourceval string_of_value : value -> string
Sourceval string_of_op : op -> string
Sourceval plugin : Plugin.t
Sourceval 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.