Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Preloading/TwitterAPIBridge
/ Cache
Struct
Cache
bridge/usercache.go:8–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
)
7
8
type
Cache
struct
{
9
data
map
[string]TwitterUser
10
mutex sync.RWMutex
11
ttl time.Duration
12
}
13
14
func
NewCache(ttl time.Duration) *Cache {
15
return
&Cache{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected