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

Function NewPoolHookManager

internal/pool/hooks.go:42–46  ·  view source on GitHub ↗

NewPoolHookManager creates a new pool hook manager.

()

Source from the content-addressed store, hash-verified

40
41// NewPoolHookManager creates a new pool hook manager.
42func NewPoolHookManager() *PoolHookManager {
43 return &PoolHookManager{
44 hooks: make([]PoolHook, 0),
45 }
46}
47
48// AddHook adds a pool hook to the manager.
49// Hooks are called in the order they were added.

Callers 6

TestPoolHookManagerFunction · 0.85
TestHookErrorHandlingFunction · 0.85
TestHookShouldRemoveFunction · 0.85
TestPoolWithHooksFunction · 0.85
initializeHooksMethod · 0.85

Calls

no outgoing calls

Tested by 5

TestPoolHookManagerFunction · 0.68
TestHookErrorHandlingFunction · 0.68
TestHookShouldRemoveFunction · 0.68
TestPoolWithHooksFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…