def _get_free_slot(self):
slot_indexes = sorted(self._slots_by_index.values())<EOL>if len(slot_indexes) > <NUM_LIT:0>:<EOL><INDENT>return slot_indexes[-<NUM_LIT:1>] + <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
:param cached:
:return: