def set(self, key: str, value: object) -> None:
if not key or not isinstance(key, str):<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>self._services[key] = value<EOL>
Caches a value for the lifetime of the current turn.
:param key:
:param value:
:return: