def request_uniq(func):
    """
    return unique dict for each uwsgi request.
    note: won't work on non-uwsgi cases
    """

    def _wrapped(*args, **kwargs):
        data = _get_request_unique_cache()
        return func(data, *args, **kwargs)

    return _wrapped