In any municipality having a municipal prison the governing body, by ordinance, may provide for the appointment of a prison keeper and upon such appointment he shall become a member of the police department or force of said municipality.
N.J.S. § 40A:14-142