A simple runtime cache wrapper for caching any method.