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

Method GetStateMachine

internal/pool/conn.go:791–793  ·  view source on GitHub ↗

GetStateMachine returns the connection's state machine for advanced state management. This is primarily used by internal packages like maintnotifications for handoff processing.

()

Source from the content-addressed store, hash-verified

789// GetStateMachine returns the connection's state machine for advanced state management.
790// This is primarily used by internal packages like maintnotifications for handoff processing.
791func (cn *Conn) GetStateMachine() *ConnStateMachine {
792 return cn.stateMachine
793}
794
795// TryAcquire attempts to acquire the connection for use.
796// This is an optimized inline method for the hot path (Get operation).

Callers 12

initConnOnMockServerFunction · 0.95
TestConnectionHookFunction · 0.95
handleMovingMethod · 0.95
TestReAuthOnlyWhenIdleFunction · 0.95
TestReAuthRespectsClosedFunction · 0.95
initConnMethod · 0.80
OnPutMethod · 0.80
putConnMethod · 0.80

Calls

no outgoing calls