MCPcopy Create free account
hub / github.com/dagger/dagger / cacheImplicitInputs

Method cacheImplicitInputs

core/modfunc.go:124–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124func (fn *ModuleFunction) cacheImplicitInputs() []dagql.ImplicitInput {
125 if fn == nil || fn.mod.Self() == nil || fn.metadata == nil {
126 return nil
127 }
128
129 var implicitInputs []dagql.ImplicitInput
130 cachePolicy := fn.metadata.derivedCachePolicy(fn.mod.Self())
131 switch cachePolicy {
132 case FunctionCachePolicyNever:
133 implicitInputs = append(implicitInputs, dagql.PerCallInput)
134 case FunctionCachePolicyPerSession:
135 implicitInputs = append(implicitInputs, dagql.PerSessionInput)
136 }
137
138 return implicitInputs
139}
140
141// setCallInputs sets the call inputs for the function call.
142//

Callers 4

installConstructorMethod · 0.80
objFunFunction · 0.80

Calls 2

SelfMethod · 0.80
derivedCachePolicyMethod · 0.80