def _build_cache_key(prefix, args, kwargs):
    """Builds and returns a cache key based on the passed in args and kwargs
    """
    cache_key = (prefix,) + args + (object(),)
    cache_key += tuple(sorted(kwargs.items()))
    return cache_key