Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Preloading/TwitterAPIBridge
/ NewCache
Function
NewCache
bridge/usercache.go:14–19 ·
view source on GitHub ↗
(ttl time.Duration)
Source
from the content-addressed store, hash-verified
12
}
13
14
func
NewCache(ttl time.Duration) *Cache {
15
return
&Cache{
16
data: make(
map
[string]TwitterUser),
17
ttl: ttl,
18
}
19
}
20
21
func
(c *Cache) Get(key string) (TwitterUser, bool) {
22
c.mutex.RLock()
Callers
1
blueskyapi.go
File · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected