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

Method Set

bridge/usercache.go:31–36  ·  view source on GitHub ↗
(key string, user TwitterUser)

Source from the content-addressed store, hash-verified

29}
30
31func (c *Cache) Set(key string, user TwitterUser) {
32 c.mutex.Lock()
33 defer c.mutex.Unlock()
34 c.data[key] = user
35 go c.expireKeyAfterTTL(key)
36}
37
38// maybe not the most effiecent use of memory.
39func (c *Cache) SetMultiple(keys []string, user TwitterUser) {

Callers 2

SendRequestFunction · 0.45

Calls 1

expireKeyAfterTTLMethod · 0.95

Tested by

no test coverage detected