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

Function GetCachedTimeNs

internal/pool/conn.go:43–45  ·  view source on GitHub ↗

GetCachedTimeNs returns the current time in nanoseconds. Exported for use by other packages that need fast time access.

()

Source from the content-addressed store, hash-verified

41// GetCachedTimeNs returns the current time in nanoseconds.
42// Exported for use by other packages that need fast time access.
43func GetCachedTimeNs() int64 {
44 return getCachedTimeNs()
45}
46
47// Global atomic counter for connection IDs
48var connIDCounter uint64

Callers 1

Calls 1

getCachedTimeNsFunction · 0.85

Tested by

no test coverage detected