def METHOD_NAME(*args, **kwargs):
    key = cache_function_key(func, args, kwargs)
    value = cache.get(key)
    if value is not None:
        return value
    else:
        result = func(*args, **kwargs)
        cache.set(key, result, length)
        return result