//
pkg.gl
Category
github.com/matthewpi/pgconn
stmtcache
package
1.8.2
Repository:
https://github.com/matthewpi/pgconn.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
183 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.