MCPcopy
hub / github.com/openfaas/faas / FunctionCacher

Interface FunctionCacher

gateway/scaling/function_cache.go:14–17  ·  view source on GitHub ↗

FunctionCacher queries functions and caches the results

Source from the content-addressed store, hash-verified

12
13// FunctionCacher queries functions and caches the results
14type FunctionCacher interface {
15 Set(functionName, namespace string, serviceQueryResponse ServiceQueryResponse)
16 Get(functionName, namespace string) (ServiceQueryResponse, bool)
17}
18
19// FunctionCache provides a cache of Function replica counts
20type FunctionCache struct {

Callers 8

RoundTripMethod · 0.65
FetchMethod · 0.65
AddMetricsHandlerFunction · 0.65
makeFunctionsHandlerFunction · 0.65
CollectMethod · 0.65
getFunctionsMethod · 0.65
GetMethod · 0.65
ScaleMethod · 0.65

Implementers 1

FunctionCachegateway/scaling/function_cache.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…