def METHOD_NAME(self, key, value):
    self.db.AQLQuery(
        """
        UPSERT {_key: @key}
        INSERT {_key: @key, task: @value}
        UPDATE {task: @value} IN @@collection
        """,
        bindVars={
            "@collection": self.collection,
            "key": key,
            "value": value,
        },
    )