MCPcopy Create free account
hub / github.com/ericls/imgdd / get

Method get

httpserver/image_response_cache.go:67–75  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

65}
66
67func (c *imageResponseCache) get(key string) (*imageResponseCacheEntry, bool) {
68 if c == nil {
69 return nil, false
70 }
71 c.mu.Lock()
72 defer c.mu.Unlock()
73
74 return c.items.Get(key)
75}
76
77func (c *imageResponseCache) put(key string, contentType string, etag string, xImgddSI string, body []byte) {
78 if c == nil || int64(len(body)) > c.maxFileBytes {

Callers 8

ResetPasswordPageFunction · 0.45
UsersListFunction · 0.45
menu.tsxFile · 0.45
makeImageHandlerFunction · 0.45
makeDirectImageHandlerFunction · 0.45

Calls 1

GetMethod · 0.65