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

Method Get

twitterv1/imagelink.go:25–30  ·  view source on GitHub ↗

Get returns the cached shortcode for a URL

(url string)

Source from the content-addressed store, hash-verified

23
24// Get returns the cached shortcode for a URL
25func (c *urlCache) Get(url string) (string, bool) {
26 c.mutex.RLock()
27 defer c.mutex.RUnlock()
28 code, ok := c.cache[url]
29 return code, ok
30}
31
32// Set caches a URL and its shortcode
33func (c *urlCache) Set(url, code string) {

Callers 13

CreateShortLinkFunction · 0.45
UpdateProfilePictureFunction · 0.45
InitServerFunction · 0.45
access_tokenFunction · 0.45
GetAuthFromReqFunction · 0.45
CDNDownscalerFunction · 0.45
status_updateFunction · 0.45
status_update_with_mediaFunction · 0.45
retweetFunction · 0.45
favouriteFunction · 0.45
UnfavouriteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected