MCPcopy Index your code
hub / github.com/Preloading/TwitterAPIBridge / Get

Method Get

bridge/usercache.go:21–29  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

19}
20
21func (c *Cache) Get(key string) (TwitterUser, bool) {
22 c.mutex.RLock()
23 defer c.mutex.RUnlock()
24 user, found := c.data[key]
25 if !found {
26 return TwitterUser{}, false
27 }
28 return user.copy(), true
29}
30
31func (c *Cache) Set(key string, user TwitterUser) {
32 c.mutex.Lock()

Callers 4

ResolveDIDFromHandleFunction · 0.45
ResolvePDSFromDIDFunction · 0.45
GetUserInfoFunction · 0.45
GetUsersInfoFunction · 0.45

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected