MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithReload

Function WithReload

otredis/dependency_option.go:31–35  ·  view source on GitHub ↗

WithReload toggles whether the factory should reload cached instances upon OnReload event.

(shouldReload bool)

Source from the content-addressed store, hash-verified

29// WithReload toggles whether the factory should reload cached instances upon
30// OnReload event.
31func WithReload(shouldReload bool) ProvidersOptionFunc {
32 return func(options *providersOption) {
33 options.reloadable = shouldReload
34 }
35}

Callers 1

Calls

no outgoing calls

Tested by 1