The family visa in the UK is granted either under a 5-year route to settlement or a 10-year route to settlement.
Under the 5-year route to settlement, you can apply for ILR after 5 years of your residence in the UK under the family visa. Under the 10-year route to settlement, you can apply for ILR after 10 years of residence in the UK under the family visa.