@functools.wraps(obj)
def memoizer(*args, **kwargs):
    if args not in cache:
        cache[args] = obj(*args, **kwargs)
return cache[args]
How to register within a decorator all functions it decorates?