Every person, having an interest in property subject to a lien, has a right to redeem it from the lien, at any time after the claim is due, and before his right of redemption is foreclosed, and, by such redemption, becomes subrogated to all the benefits of the lien, as against all owners of other interests in the property, except in so far as he was bound to make such redemption for their benefit.
Ca. Civ. Code § 2903