@pool_memcached_connections<EOL><INDENT>def solve(self):<DEDENT>
with log_duration(self._print, "<STR_LIT>"):<EOL><INDENT>solver_dict = self._get_cached_solve()<EOL><DEDENT>if solver_dict:<EOL><INDENT>self.from_cache = True<EOL>self._set_result(solver_dict)<EOL><DEDENT>else:<EOL><INDENT>self.from_cache = False<EOL>solver = self._solve()<EOL>solver_dict = self._solver_to_dict(solver)<EOL>self._set_result(solver_dict)<EOL>with log_duration(self._print, "<STR_LIT>"):<EOL><INDENT>self._set_cached_solve(solver_dict)<EOL><DEDENT><DEDENT>
Perform the solve.