def __setitem__(self, key, value):
if self._haveKey(key):<EOL><INDENT>query = (<EOL>"<STR_LIT>".format(<EOL>self.__tablename__, self.__value__, self.__key__<EOL>),<EOL>(value, key),<EOL>)<EOL><DEDENT>else:<EOL><INDENT>query = (<EOL>"<STR_LIT>".format(<EOL>self.__tablename__, self.__key__, self.__value__<EOL>),<EOL>(key, value),<EOL>)<EOL><DEDENT>connection = sqlite3.connect(self.sqlite_file)<EOL>cursor = connection.cursor()<EOL>cursor.execute(*query)<EOL>connection.commit()<EOL>
Sets an item in the store

            :param str key: Key
            :param str value: Value