sihl.session
Sihl_session
Use this module to create user sessions and to read and write session data.
sihl
sihl.authn
sihl.authz
sihl.core
sihl.database
sihl.email
sihl.http
sihl.message
sihl.middleware
sihl.migration
sihl.password-reset
sihl.queue
sihl.repository
sihl.schedule
sihl.storage
sihl.token
sihl.user
sihl.utils
module Service : sig ... end
The session service exposes a key-value store that is scoped by user session
module Sig : sig ... end
type data_map = (string * string) list
type data
type t
module Map : sig ... end
val sexp_of_t : t -> Sexplib0.Sexp.t
val key : t -> string
val data : t -> string Map.t
val is_expired : Ptime.t -> t -> bool
val data_of_string : string -> (data, string) Result.t
val string_of_data : data -> string
val get : string -> t -> string option
val set : key:string -> value:string -> t -> t
val remove : key:string -> t -> t
val pp : Format.formatter -> t -> unit
val t : t Caqti_type.t