package eliom

All checked builds pass
  1. Overview
  2. Docs
Advanced client/server Web and mobile framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

13.0.0.tar.gz
md5=904867e857f818f5bc950f6da588f060
sha512=2c40a53b955297b6cba603d1efb7bf9613a5b52555c940397ed1643165ae258dd59bfebed53c160b2cb63372e038121c5973616cab45e906a6c7bfc6f2d924c2

doc/eliom.server/Eliom/Reference/Volatile/index.html

Module Reference.Volatile

Same functions as in Reference but a non-Lwt interface for non-persistent Eliom references.

type 'a eref = ('a, [ `Volatile ]) eref'

The type of volatile Eliom references. Note that ('a Reference.Volatile.eref :> 'a Reference.eref), i.e. wherever you can use an 'a Reference.eref you can also use an 'a Reference.Volatile.eref :> 'a Reference.eref.

val eref : scope:[< Common.all_scope ] -> ?secure:bool -> 'a -> 'a eref
val eref_from_fun : scope:[< Common.all_scope ] -> ?secure:bool -> (unit -> 'a) -> 'a eref
val get : 'a eref -> 'a
val set : 'a eref -> 'a -> unit
val modify : 'a eref -> ('a -> 'a) -> unit
val unset : 'a eref -> unit
module Ext : sig ... end

This module allows access to volatile references for other groups, sessions, or client processes. Use it in conjunction with functions like State.Ext.iter_volatile_sub_states to get the sessions from a group (or the processes from a session).