MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / RouteCache

Function RouteCache

cache-extension-demo/extension/entry.go:69–78  ·  view source on GitHub ↗

Route request to corresponding cache handlers

(cacheType string, name string)

Source from the content-addressed store, hash-verified

67
68// Route request to corresponding cache handlers
69func RouteCache(cacheType string, name string) string {
70 switch cacheType {
71 case Parameters:
72 return plugins.GetParameterCache(name)
73 case Dynamodb:
74 return plugins.GetDynamodbCache(name)
75 default:
76 return ""
77 }
78}
79
80// Load the config file
81func LoadConfigFile() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected