Implementing a Cache using Cache.make and understanding the lookup function
How is implemented a
Specifically, it's not clear to me how
And then using the cache:
But this does not seem to work (the cache is always empty). I think I am making some mistake in
Cache using Cache.make?Specifically, it's not clear to me how
lookup works. I tried with this:And then using the cache:
But this does not seem to work (the cache is always empty). I think I am making some mistake in
Cache.make.