mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 01:07:06 +08:00
support rename in cluster
This commit is contained in:
@@ -39,6 +39,11 @@ func (cluster *Cluster) LocalExec(c redis.Connection, cmdLine [][]byte) redis.Re
|
||||
return cluster.db.Exec(c, cmdLine)
|
||||
}
|
||||
|
||||
// LocalExec executes command at local node
|
||||
func (cluster *Cluster) LocalExecWithinLock(c redis.Connection, cmdLine [][]byte) redis.Reply {
|
||||
return cluster.db.ExecWithLock(c, cmdLine)
|
||||
}
|
||||
|
||||
// GetPartitionKey extract hashtag
|
||||
func GetPartitionKey(key string) string {
|
||||
beg := strings.Index(key, "{")
|
||||
|
Reference in New Issue
Block a user