package redis

import 

type ClusterCmdable interface {
	ClusterMyShardID(ctx context.Context) *StringCmd
	ClusterMyID(ctx context.Context) *StringCmd
	ClusterSlots(ctx context.Context) *ClusterSlotsCmd
	ClusterShards(ctx context.Context) *ClusterShardsCmd
	ClusterLinks(ctx context.Context) *ClusterLinksCmd
	ClusterNodes(ctx context.Context) *StringCmd
	ClusterMeet(ctx context.Context, host, port string) *StatusCmd
	ClusterForget(ctx context.Context, nodeID string) *StatusCmd
	ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
	ClusterResetSoft(ctx context.Context) *StatusCmd
	ClusterResetHard(ctx context.Context) *StatusCmd
	ClusterInfo(ctx context.Context) *StringCmd
	ClusterKeySlot(ctx context.Context, key string) *IntCmd
	ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
	ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
	ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
	ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
	ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
	ClusterSaveConfig(ctx context.Context) *StatusCmd
	ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
	ClusterFailover(ctx context.Context) *StatusCmd
	ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
	ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
	ReadOnly(ctx context.Context) *StatusCmd
	ReadWrite(ctx context.Context) *StatusCmd
}

func ( cmdable) ( context.Context) *StringCmd {
	 := NewStringCmd(, "cluster", "myshardid")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringCmd {
	 := NewStringCmd(, "cluster", "myid")
	_ = (, )
	return 
}

// ClusterSlots returns the mapping of cluster slots to nodes.
//
// Deprecated: Use ClusterShards instead as of Redis 7.0.0.
func ( cmdable) ( context.Context) *ClusterSlotsCmd {
	 := NewClusterSlotsCmd(, "cluster", "slots")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *ClusterShardsCmd {
	 := NewClusterShardsCmd(, "cluster", "shards")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *ClusterLinksCmd {
	 := NewClusterLinksCmd(, "cluster", "links")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringCmd {
	 := NewStringCmd(, "cluster", "nodes")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context, ,  string) *StatusCmd {
	 := NewStatusCmd(, "cluster", "meet", , )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string) *StatusCmd {
	 := NewStatusCmd(, "cluster", "forget", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string) *StatusCmd {
	 := NewStatusCmd(, "cluster", "replicate", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "cluster", "reset", "soft")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "cluster", "reset", "hard")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StringCmd {
	 := NewStringCmd(, "cluster", "info")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string) *IntCmd {
	 := NewIntCmd(, "cluster", "keyslot", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  int,  int) *StringSliceCmd {
	 := NewStringSliceCmd(, "cluster", "getkeysinslot", , )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  string) *IntCmd {
	 := NewIntCmd(, "cluster", "count-failure-reports", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  int) *IntCmd {
	 := NewIntCmd(, "cluster", "countkeysinslot", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  ...int) *StatusCmd {
	 := make([]interface{}, 2+len())
	[0] = "cluster"
	[1] = "delslots"
	for ,  := range  {
		[2+] = 
	}
	 := NewStatusCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context, ,  int) *StatusCmd {
	 :=  -  + 1
	 := make([]int, )
	for  := 0;  < ; ++ {
		[] =  + 
	}
	return .ClusterDelSlots(, ...)
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "cluster", "saveconfig")
	_ = (, )
	return 
}

// ClusterSlaves lists the replica nodes of a master node.
//
// Deprecated: Use ClusterReplicas instead as of Redis 5.0.0.
func ( cmdable) ( context.Context,  string) *StringSliceCmd {
	 := NewStringSliceCmd(, "cluster", "slaves", )
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "cluster", "failover")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context,  ...int) *StatusCmd {
	 := make([]interface{}, 2+len())
	[0] = "cluster"
	[1] = "addslots"
	for ,  := range  {
		[2+] = 
	}
	 := NewStatusCmd(, ...)
	_ = (, )
	return 
}

func ( cmdable) ( context.Context, ,  int) *StatusCmd {
	 :=  -  + 1
	 := make([]int, )
	for  := 0;  < ; ++ {
		[] =  + 
	}
	return .ClusterAddSlots(, ...)
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "readonly")
	_ = (, )
	return 
}

func ( cmdable) ( context.Context) *StatusCmd {
	 := NewStatusCmd(, "readwrite")
	_ = (, )
	return 
}