def add_comment(thread_uid, author, text):
<EOL>comment_uid = uid()<EOL>with content.pipeline() as pipe:<EOL><INDENT>pipe.hmset(build_key(COMMENT_KEY, thread_uid, comment_uid), {<EOL>'<STR_LIT>': author,<EOL>'<STR_LIT:text>': text,<EOL>'<STR_LIT>': time.time(),<EOL>})<EOL>pipe.hmset(build_key(THREAD_KEY, thread_uid), {<EOL>'<STR_LIT>': comment_uid,<EOL>})<EOL>pipe.execute()<EOL><DEDENT>with links.pipeline() as pipe:<EOL><INDENT>pipe.rpush(build_key(THREAD_COMMENTS_KEY, thread_uid), comment_uid)<EOL>pipe.incr(build_key(THREAD_COUNTER_KEY, thread_uid))<EOL>pipe.execute()<EOL><DEDENT>return True<EOL>
Add comment to specefied thread.

    :param thread_uid: Thread unique ID.
    :param author: Author of comment.
    :param text: Comment text.