def setex(self, key: str, time: int, value: str) -> bool:
        """Set key to hold string value and set key to timeout after given seconds"""
        self.data[key] = value
        self.ttl_data[key] = time
        return True
Set key to hold string value and set key to timeout after given seconds
tests/test_precommit_with_mock_store.py