Versions in this module Expand all Collapse all v1 v1.8.2 May 18, 2021 Changes in this version + const ModeDescribe + const ModePrepare + type Cache interface + Cap func() int + Clear func(ctx context.Context) error + Get func(ctx context.Context, sql string) (*pgconn.StatementDescription, error) + Len func() int + Mode func() int + StatementErrored func(sql string, err error) + func New(conn *pgconn.PgConn, mode int, cap int) Cache + type LRU struct + func NewLRU(conn *pgconn.PgConn, mode int, cap int) *LRU + func (c *LRU) Cap() int + func (c *LRU) Clear(ctx context.Context) error + func (c *LRU) Get(ctx context.Context, sql string) (*pgconn.StatementDescription, error) + func (c *LRU) Len() int + func (c *LRU) Mode() int + func (c *LRU) StatementErrored(sql string, err error)