A common optimization technique in data pipelines is memoization: wrapping an expensive function so repeated calls with the same inputs can return a cached result instead of recomputing it.
You are given a partially implemented FunctionCallCache class that wraps arbitrary functions and stores their return values in an LRU (Least Recently Used) cache. The provided skeleton already handles cache lookup, cache insertion, cache hits, cache misses, and LRU eviction. The only missing piece is create_cache_key, which must generate a deterministic, hashable key for each function call.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Stdout
-