sihl.session
Session
Use this module to create user sessions and to read and write session data.
sihl
sihl.app
sihl.authn
sihl.authz
sihl.cmd
sihl.configuration
sihl.core
sihl.data
sihl.email
sihl.http
sihl.log
sihl.message
sihl.middleware
sihl.queue
sihl.schedule
sihl.server
sihl.storage
sihl.token
sihl.user
sihl.utils
sihl.web
module Service : sig ... end
The session service exposes a key-value store that is scoped by user session
module Schedule : sig ... end
type data_map = (Base.string * Base.string) Base.list
type data = (Base.string, Base.string, Base.String.comparator_witness) Base.Map.t
type t
val key : t -> string
val data : t -> (string, string, Base.String.comparator_witness) Base.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