def slaveof(master_host=None, master_port=None, host=None, port=None, db=None, password=None):
 if (master_host and (not master_port)):
  master_port = 6379
 server = _connect(host, port, db, password)
 return server.slaveof(master_host, master_port)

def slaveof ( master_host = None , master_port = None , host = None , port = None , db = None , password = None ) : if ( master_host and ( not master_port ) ) : master_port = 6379 server = _connect ( host , port , db , password ) return server . slaveof ( master_host , master_port )
set this redis instance as a slave .