Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/go-redis
/ UsedAt
Method
UsedAt
internal/pool/conn.go:180–182 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
178
}
179
180
func
(cn *Conn) UsedAt() time.Time {
181
return
time.Unix(0, cn.usedAt.Load())
182
}
183
func
(cn *Conn) SetUsedAt(tm time.Time) {
184
cn.usedAt.Store(tm.UnixNano())
185
}
Callers
7
TestConn_UsedAtUpdatedOnRead
Function · 0.95
TestConn_UsedAtUpdatedOnWrite
Function · 0.95
TestConn_UsedAtUpdatedOnMultipleOperations
Function · 0.95
TestConn_UsedAtNotUpdatedWithoutOperation
Function · 0.95
TestConn_UsedAtConcurrentUpdates
Function · 0.95
TestConn_UsedAtPrecision
Function · 0.95
redis_test.go
File · 0.80
Calls
1
Load
Method · 0.45
Tested by
6
TestConn_UsedAtUpdatedOnRead
Function · 0.76
TestConn_UsedAtUpdatedOnWrite
Function · 0.76
TestConn_UsedAtUpdatedOnMultipleOperations
Function · 0.76
TestConn_UsedAtNotUpdatedWithoutOperation
Function · 0.76
TestConn_UsedAtConcurrentUpdates
Function · 0.76
TestConn_UsedAtPrecision
Function · 0.76