Thanks, that helps. Further, can you give the code that defines `cache`?