METHODS This randomized trial was approved by the Research Ethics Committee of the School of Medical and Health Sciences, Pontifical Catholica University of São Paulo, approval number 45087615.0.0000.5373. Written consent form will be obtained from all participants. Seventy patients aged 18 to 65 years old, with an American Society of Anesthesiologists (ASA) physical status I or II, who will bee scheduled to undergo local infiltration under general anesthesia via laryngeal mask or spinal anesthesia for unilateral inguinal hernia repair at Santa Lucinda Hospital will be enrolled in the study. Patients who (i) refuse to participate in the study; (ii) are not able to communicate due to alterations in the level of consciousness, or neurologic, or psychiatric disease; (iii) present with contraindication to any of the drugs used in the present study; (iv) have history of alcohol or drug dependence; (v) are super obese as defined by a body mass index (BMI) ≥ 40; and (vi) undergo operation for recurrent, strangulated, incarcerated or bilateral hernia will excluded from the study.