from typing import Tuple
from typing import Dict


def __generate_request_cache_key(args: Tuple, kwargs: Dict):
	"""Generate a key for the cache."""
	if not kwargs:
		return hash(args)
	return hash((args, frozenset(kwargs.items())))