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

Method NewConn

internal/pool/pool_sticky.go:60–62  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

58}
59
60func (p *StickyConnPool) NewConn(ctx context.Context) (*Conn, error) {
61 return p.pool.NewConn(ctx)
62}
63
64func (p *StickyConnPool) CloseConn(ctx context.Context, cn *Conn, reason string, fromState string) error {
65 return p.pool.CloseConn(ctx, cn, reason, fromState)

Callers

nothing calls this directly

Calls 1

NewConnMethod · 0.65

Tested by

no test coverage detected