Refried beans freeze well. Once the beans have cooled, divide them into portions that suit how you plan to use them and freeze in freezer bags or freezer safe containers. Use within a couple of months.