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

Method executeSpecialCommand

osscluster_router.go:281–288  ·  view source on GitHub ↗

executeSpecialCommand handles commands with special routing requirements

(ctx context.Context, cmd Cmder, policy *routing.CommandPolicy, node *clusterNode)

Source from the content-addressed store, hash-verified

279
280// executeSpecialCommand handles commands with special routing requirements
281func (c *ClusterClient) executeSpecialCommand(ctx context.Context, cmd Cmder, policy *routing.CommandPolicy, node *clusterNode) error {
282 switch cmd.Name() {
283 case "ft.cursor":
284 return c.executeCursorCommand(ctx, cmd)
285 default:
286 return c.executeDefault(ctx, cmd, policy, node)
287 }
288}
289
290// executeCursorCommand handles FT.CURSOR commands with sticky routing
291func (c *ClusterClient) executeCursorCommand(ctx context.Context, cmd Cmder) error {

Callers 1

routeAndRunMethod · 0.95

Calls 3

executeCursorCommandMethod · 0.95
executeDefaultMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected