hasKeys checks if a command operates on keys
(cmd Cmder)
| 502 | |
| 503 | // hasKeys checks if a command operates on keys |
| 504 | func (c *ClusterClient) hasKeys(cmd Cmder) bool { |
| 505 | firstKeyPos := cmdFirstKeyPosWithInfo(cmd, c.cmdInfoPeek(cmd.Name())) |
| 506 | return firstKeyPos > 0 |
| 507 | } |
| 508 | |
| 509 | func (c *ClusterClient) readOnlyEnabled() bool { |
| 510 | return c.opt.ReadOnly |
no test coverage detected