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

Method CloseOnPutReason

internal/pool/conn.go:452–454  ·  view source on GitHub ↗

CloseOnPutReason returns a non-empty reason when the connection should be removed instead of pooled on Put.

()

Source from the content-addressed store, hash-verified

450// CloseOnPutReason returns a non-empty reason when the connection should be
451// removed instead of pooled on Put.
452func (cn *Conn) CloseOnPutReason() string {
453 return cn.closeOnPutReason.Load()
454}
455
456// IsPubSub returns true if the connection is used for PubSub.
457func (cn *Conn) IsPubSub() bool {

Callers 2

putConnMethod · 0.80
pool_test.goFile · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected