It is the duty of the sheriff, where the jail is not fireproof, and so long as any person is confined in the jail, to be constantly at the jail or to have constantly at the jail someone having in possession all keys necessary to liberate all of the prisoners in the jail in case of fire.