(ctx context.Context)
| 55 | } |
| 56 | |
| 57 | func (c *ClusterClient) ScriptFlush(ctx context.Context) *StatusCmd { |
| 58 | cmd := NewStatusCmd(ctx, "script", "flush") |
| 59 | _ = c.withProcessHook(ctx, cmd, func(ctx context.Context, _ Cmder) error { |
| 60 | err := c.ForEachShard(ctx, func(ctx context.Context, shard *Client) error { |
| 61 | return shard.ScriptFlush(ctx).Err() |
| 62 | }) |
| 63 | if err != nil { |
| 64 | cmd.SetErr(err) |
| 65 | } |
| 66 | return nil |
| 67 | }) |
| 68 | return cmd |
| 69 | } |
| 70 | |
| 71 | func (c *ClusterClient) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd { |
| 72 | args := make([]interface{}, 2+len(hashes)) |
nothing calls this directly
no test coverage detected