It would be nice if there were a way to tell if there was a cache hit for memory.cache(func)(*args, **kwargs).
Is this possible already? If so, I can add a PR to add whatever method works to the docs. If it's in the docs already and I missed it, my apologies!
If it's not possible, I'm not sure of a great way to do it. One option would be Memory(..., return_hit=False) where, if True, each call returns out, hit = memory.cache(func)(*args, **kwargs) rather than just returning the out from the func.