Implement a caching wrapper that stores function results based on arguments. Subsequent calls with same arguments return cached result.
Implement a function that caches results of function calls based on arguments.