You can keep it refrigerated for up to 2 days. The oil will solidify slightly so you will need to bring it to room temperature to serve. Make a batch that you can enjoy within this time. Fresh ingredients, such as herbs and garlic, when stored in oil, cannot safely be kept for a long time as they have the potential to develop bacteria that can cause botulism.