package session-postgresql-async

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

PostgreSQL backend using the Session.S.Future siganture with Aysnc, together with connection pooling via a Throttle

include Session.S.Future with type key = string and type value = string and type period = int64
type +'a io
type t
type key = string
type value = string
type period = int64
val default_period : t -> period
val generate : ?expiry:period -> ?value:value -> t -> key io
val clear : t -> key -> unit io
val get : t -> key -> (value * period, Session__S.error) Stdlib.result io
val set : ?expiry:period -> t -> key -> value -> unit io
val of_throttle : Postgresql.connection Async.Throttle.t -> t

Createa a connection pool from a connection throttle.

val set_default_period : t -> period -> unit

set_default_period t period sets the default expiry period of t. This will only affect future operations.

OCaml

Innovation. Community. Security.