MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / Get

Method Get

cache/cache.go:14–14  ·  view source on GitHub ↗
(key *Key)

Source from the content-addressed store, hash-verified

12 // TODO consider the value of Stats in future iterations. Maybe it is not needed?
13 Stats() Stats
14 Get(key *Key) (*CachedData, error)
15 Put(r io.Reader, ctMetadata ContentMetadata, key *Key) (time.Duration, error)
16 Name() string
17}

Callers 15

ServeHTTPMethod · 0.65
shouldRespondFromCacheFunction · 0.65
serveFromCacheMethod · 0.65
newCacheKeyFunction · 0.65
calcQueryParamsHashFunction · 0.65
getAuthFunction · 0.65
getSessionIdFunction · 0.65
getSessionTimeoutFunction · 0.65
getQuerySnippetFunction · 0.65
getFullQueryFunction · 0.65
getDecompressorFunction · 0.65
GetRemoteAddrMethod · 0.65

Implementers 2

fileSystemCachecache/filesystem_cache.go
redisCachecache/redis_cache.go

Calls

no outgoing calls

Tested by 8

TestServeFunction · 0.52
httpGetFunction · 0.52
checkHeaderFunction · 0.52
cacheAddGetHelperFunction · 0.52
cacheMissHelperFunction · 0.52