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

Struct SingleConnPool

internal/pool/pool_single.go:11–15  ·  view source on GitHub ↗

SingleConnPool is a pool that always returns the same connection. Note: This pool is not thread-safe. It is intended to be used by clients that need a single connection.

Source from the content-addressed store, hash-verified

9// Note: This pool is not thread-safe.
10// It is intended to be used by clients that need a single connection.
11type SingleConnPool struct {
12 pool Pooler
13 cn *Conn
14 stickyErr error
15}
16
17var _ Pooler = (*SingleConnPool)(nil)
18

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected