Skip to content

Commit

Permalink
fix cache.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-20 committed Feb 3, 2025
1 parent 9ce19ba commit 4ba73c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/cache.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type cacheWithInfo struct {
uniqueOnly bool // if true, query is like "SELECT * FROM table WHERE pk = ?"
lastUpdate atomic.Int64 // time.Time.UnixNano()
lastUpdateByKey syncMap[int64]
replaceTime atomic.Int64
}

func (c *cacheWithInfo) updateTx() {
Expand Down Expand Up @@ -50,6 +51,7 @@ type (
argsKey struct{}
queryerCtxKey struct{}
namedValueArgsKey struct{}
cacheWithInfoKey struct{}
)

func ExportMetrics() string {
Expand Down

0 comments on commit 4ba73c5

Please sign in to comment.