MCPcopy
hub / github.com/redis/go-redis / MarkCloseOnPut

Method MarkCloseOnPut

internal/pool/conn.go:446–448  ·  view source on GitHub ↗

MarkCloseOnPut marks the connection for removal when it is returned to the pool.

(reason string)

Source from the content-addressed store, hash-verified

444
445// MarkCloseOnPut marks the connection for removal when it is returned to the pool.
446func (cn *Conn) MarkCloseOnPut(reason string) {
447 cn.closeOnPutReason.Store(reason)
448}
449
450// CloseOnPutReason returns a non-empty reason when the connection should be
451// removed instead of pooled on Put.

Callers 1

RetireConnsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected