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

Method RegisterPool

internal/otel/metrics.go:109–109  ·  view source on GitHub ↗

RegisterPool is called when a new client is created with its connection pools. poolName: identifier for the pool (e.g., "main_abc123") pool: the connection pool

(poolName string, pool pool.Pooler)

Source from the content-addressed store, hash-verified

107 // poolName: identifier for the pool (e.g., "main_abc123")
108 // pool: the connection pool
109 RegisterPool(poolName string, pool pool.Pooler)
110 // UnregisterPool is called when a client is closed to remove its pool from the registry.
111 // pool: the connection pool to unregister
112 UnregisterPool(pool pool.Pooler)

Callers 1

RegisterPoolsFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected