Description

SetConnMaxLifetime sets the maximum amount of time a connection may be reused.

Expired connections may be closed lazily before reuse.

If d <= 0, connections are reused forever.

SetConnMaxLifetime is referenced in 16 repositories

github.com/golang/go github.com/upper/db upper.io/db.v2

...