def _default_key_function(*args, **kwargs):
    """
    Return a string key, based on a given args and kwargs
    """
    key = "|".join(map(str, args))
    if kwargs:
        key += "|" + "|".join(map(str, sorted(kwargs.items())))

    return key