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

Method GetID

internal/pool/conn.go:785–787  ·  view source on GitHub ↗

GetID returns the unique identifier for this connection.

()

Source from the content-addressed store, hash-verified

783
784// GetID returns the unique identifier for this connection.
785func (cn *Conn) GetID() uint64 {
786 return cn.id
787}
788
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.

Callers 15

TestConnectionHookFunction · 0.95
handleMovingMethod · 0.95
ExecuteInitConnMethod · 0.95
getConnMethod · 0.95
ReceiveTimeoutMethod · 0.80
OnPutMethod · 0.80
OnRemoveMethod · 0.80
PreHookMethod · 0.80
PostHookMethod · 0.80
isHandoffPendingMethod · 0.80

Calls

no outgoing calls

Tested by 3

TestConnectionHookFunction · 0.76
RemoveMethod · 0.64
getConnIDMethod · 0.64