Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mpolden/echoip
/ key
Function
key
http/cache.go:36–40 ·
view source on GitHub ↗
(ip net.IP)
Source
from the content-addressed store, hash-verified
34
}
35
36
func
key(ip net.IP) uint64 {
37
h := fnv.New64a()
38
h.Write(ip)
39
return
h.Sum64()
40
}
41
42
func
(c *Cache) Set(ip net.IP, resp Response) {
43
if
c.capacity == 0 {
Callers
2
Set
Method · 0.85
Get
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected