//
pkg.gl
Category
github.com/jackc/pgconn
stmtcache
package
1.14.3
Repository:
https://github.com/jackc/pgconn.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
7
Files
195 SLOC
#
Functions
New
New returns the preferred cache implementation for mode and cap.
NewLRU
NewLRU creates a new LRU.
#
Constants
ModeDescribe
Cache should prepare the anonymous prepared statement to only fetch the description of the statement.
ModePrepare
Cache should prepare named statements.
#
Structs
LRU
LRU implements Cache with a Least Recently Used (LRU) cache.
#
Interfaces
Cache
Cache prepares and caches prepared statement descriptions.