Added method and test for saving a recipe to cache.