Versions in this module Expand all Collapse all v1 v1.0.0 Oct 21, 2024 Changes in this version + func StatementName(sql string) string + type Cache interface + Cap func() int + Get func(sql string) *pgconn.StatementDescription + GetInvalidated func() []*pgconn.StatementDescription + Invalidate func(sql string) + InvalidateAll func() + Len func() int + Put func(sd *pgconn.StatementDescription) + RemoveInvalidated func() + type LRUCache struct + func NewLRUCache(cap int) *LRUCache + func (c *LRUCache) Cap() int + func (c *LRUCache) Get(key string) *pgconn.StatementDescription + func (c *LRUCache) GetInvalidated() []*pgconn.StatementDescription + func (c *LRUCache) Invalidate(sql string) + func (c *LRUCache) InvalidateAll() + func (c *LRUCache) Len() int + func (c *LRUCache) Put(sd *pgconn.StatementDescription) + func (c *LRUCache) RemoveInvalidated() + type UnlimitedCache struct + func NewUnlimitedCache() *UnlimitedCache + func (c *UnlimitedCache) Cap() int + func (c *UnlimitedCache) Get(sql string) *pgconn.StatementDescription + func (c *UnlimitedCache) GetInvalidated() []*pgconn.StatementDescription + func (c *UnlimitedCache) Invalidate(sql string) + func (c *UnlimitedCache) InvalidateAll() + func (c *UnlimitedCache) Len() int + func (c *UnlimitedCache) Put(sd *pgconn.StatementDescription) + func (c *UnlimitedCache) RemoveInvalidated()