def get_thread(thread_uid, last_comment=False, counter=False):
    thread = content.hgetall(build_key(THREAD_KEY, thread_uid))
    if not thread:
        return thread

    last_comment_uid = thread.get('last_comment_uid')
    if last_comment and last_comment_uid:
        comment_key = build_key(COMMENT_KEY, thread_uid, last_comment_uid)
        thread['last_comment'] = content.hgetall(comment_key)

    if counter:
        counter_key = build_key(THREAD_COUNTER_KEY, thread_uid)
        thread['comments_counter'] = links.get(counter_key)

    return thread
Read thread metadata by specefied UID.
dataset/ETHPy150Open playpauseandstop/Flask-And-Redis/testapp/storage.py/get_thread