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

Method expireKeyAfterTTL

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

Source from the content-addressed store, hash-verified

46}
47
48func (c *Cache) expireKeyAfterTTL(key string) {
49 time.Sleep(c.ttl)
50 c.mutex.Lock()
51 defer c.mutex.Unlock()
52 delete(c.data, key)
53}
54
55func (u TwitterUser) copy() TwitterUser {
56 return TwitterUser{

Callers 2

SetMethod · 0.95
SetMultipleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected