def put(self, key, data, overwrite=True):
assert (self._txn is not None)<EOL>was_written = self._txn.put(key, data, overwrite=overwrite)<EOL>if was_written:<EOL><INDENT>if self._stats:<EOL><INDENT>self._stats.puts += <NUM_LIT:1><EOL><DEDENT>if self._log:<EOL><INDENT>self._log.append((Transaction.PUT, key))<EOL><DEDENT><DEDENT>return was_written<EOL>
:param key:
:param data:
:param overwrite:
:return: