MCPcopy
hub / github.com/bradfitz/gomemcache / computeExpTime

Function computeExpTime

memcache/fakeserver_test.go:280–288  ·  view source on GitHub ↗
(n int64)

Source from the content-addressed store, hash-verified

278}
279
280func computeExpTime(n int64) time.Time {
281 if n == 0 {
282 return time.Time{}
283 }
284 if n <= 60*60*24*30 {
285 return time.Now().Add(time.Duration(n) * time.Second)
286 }
287 return time.Unix(n, 0)
288}

Callers 1

handleRequestLineMethod · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…