MCPcopy
hub / github.com/redis/go-redis / SetUsedAt

Method SetUsedAt

internal/pool/conn.go:183–185  ·  view source on GitHub ↗
(tm time.Time)

Source from the content-addressed store, hash-verified

181 return time.Unix(0, cn.usedAt.Load())
182}
183func (cn *Conn) SetUsedAt(tm time.Time) {
184 cn.usedAt.Store(tm.UnixNano())
185}
186
187func (cn *Conn) UsedAtNs() int64 {
188 return cn.usedAt.Load()

Callers 3

NewConnWithBufferSizeFunction · 0.95
redis_test.goFile · 0.80
GetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected