MCPcopy Create free account
hub / github.com/Preloading/TwitterAPIBridge / Set

Method Set

twitterv1/imagelink.go:33–37  ·  view source on GitHub ↗

Set caches a URL and its shortcode

(url, code string)

Source from the content-addressed store, hash-verified

31
32// Set caches a URL and its shortcode
33func (c *urlCache) Set(url, code string) {
34 c.mutex.Lock()
35 defer c.mutex.Unlock()
36 c.cache[url] = code
37}
38
39func toBase62(num uint64) string {
40 if num == 0 {

Callers 4

CreateShortLinkFunction · 0.45
CDNDownscalerFunction · 0.45
UserProfileImageFunction · 0.45
CDNVideoProxyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected