MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / WithLazyRefresh

Function WithLazyRefresh

cmd/options.go:95–99  ·  view source on GitHub ↗

WithLazyRefresh configures the Proxy to refresh connection info on an as-needed basis when the cached copy has expired.

()

Source from the content-addressed store, hash-verified

93// WithLazyRefresh configures the Proxy to refresh connection info on an
94// as-needed basis when the cached copy has expired.
95func WithLazyRefresh() Option {
96 return func(c *Command) {
97 c.conf.LazyRefresh = true
98 }
99}
100
101// WithConnRefuseNotify configures the Proxy to call the provided function when
102// a connection is refused. The notification function is run in a goroutine.

Callers 1

TestCommandOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCommandOptionsFunction · 0.68