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

Method cmdsAreReadOnly

osscluster.go:1697–1705  ·  view source on GitHub ↗
(ctx context.Context, cmds []Cmder)

Source from the content-addressed store, hash-verified

1695}
1696
1697func (c *ClusterClient) cmdsAreReadOnly(ctx context.Context, cmds []Cmder) bool {
1698 for _, cmd := range cmds {
1699 cmdInfo := c.cmdInfo(ctx, cmd.Name())
1700 if cmdInfo == nil || !cmdInfo.ReadOnly {
1701 return false
1702 }
1703 }
1704 return true
1705}
1706
1707func (c *ClusterClient) processPipelineNode(
1708 ctx context.Context, node *clusterNode, cmds []Cmder, failedCmds *cmdsMap,

Callers 1

mapCmdsByNodeMethod · 0.95

Calls 2

cmdInfoMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected