package eliom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Functions to access table data. Prefer using Eliom references.

val get_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> 'a

Raises Not_found if no data in the table for the cookie.

val get_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> 'a Lwt.t

Fails with lwt exception Not_found if no data in the table for the cookie.

val set_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> 'a -> unit
val set_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> 'a -> unit Lwt.t

Fails with lwt exception Not_found if no data in the table for the cookie.

val remove_volatile_data : state:([< `Session_group | `Session | `Client_process ], [< `Data ]) state -> table:'a volatile_table -> unit
val remove_persistent_data : state:([< `Session_group | `Session | `Client_process ], [< `Pers ]) state -> table:'a persistent_table -> unit Lwt.t
OCaml

Innovation. Community. Security.