Module Session_postgresql_async.PoolSource

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
Sourcetype +'a io
Sourcetype t
Sourcetype key = string
Sourcetype value = string
Sourcetype period = int64
Sourceval default_period : t -> period
Sourceval generate : ?expiry:??? -> ?value:??? -> t -> key io
Sourceval clear : t -> key -> unit io
Sourceval get : t -> key -> (value * period, Session__S.error) result io
Sourceval set : ?expiry:??? -> t -> key -> value -> unit io
Sourceval of_throttle : Postgresql.connection Async.Throttle.t -> t

Createa a connection pool from a connection throttle.

Sourceval set_default_period : t -> period -> unit

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