The pesto can be stored in the fridge for a few weeks. Pour a thin layer of oil over the top of the pesto before sealing it. The oil will protect the pesto from oxidising and turning brown.