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

Method PoolStats

redis.go:1506–1510  ·  view source on GitHub ↗

PoolStats returns connection pool stats.

()

Source from the content-addressed store, hash-verified

1504
1505// PoolStats returns connection pool stats.
1506func (c *Client) PoolStats() *PoolStats {
1507 stats := c.connPool.Stats()
1508 stats.PubSubStats = *(c.pubSubPool.Stats())
1509 return (*PoolStats)(stats)
1510}
1511
1512func (c *Client) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error) {
1513 return c.Pipeline().Pipelined(ctx, fn)

Callers 2

mainFunction · 0.95
mainFunction · 0.95

Calls 1

StatsMethod · 0.65

Tested by

no test coverage detected