Example #1
0
def groupHash(group_id):
    '''
    grouphash对象
        owner        组长
        gname        小组名
        managers     小组管理员
        member_num   小组成员计数器
        topic_num    小组话题计数器
    '''
    return 'GROUP:' + util.int_hex(group_id)
Example #2
0
def mddName(mdd_id):
    '''目的地名字'''
    return 'MDD:' + util.int_hex(mdd_id)
Example #3
0
def userGroupZet(user_id):
    '''用户加入的小组列表'''
    return 'USER:GRP:' + util.int_hex(user_id)
Example #4
0
def flwerZet(user_id):
    '''用户粉丝列表'''
    return 'FLWER:' + util.int_hex(user_id)
Example #5
0
def flwingZet(user_id):
    '''
    用户关注列表
    '''
    return 'FLWING:' + util.int_hex(user_id)
Example #6
0
def getSK(aid, bid):
    '''获得sessionKey'''
    return 'msg:' + util.int_hex(aid) + ':' + util.int_hex(bid)
Example #7
0
def repliedZet(user_id):
    '''
    参与过的话题(回复过的)
    '''
    return 'REPLIED:' + util.int_hex(user_id)
Example #8
0
def markedZet(user_id):
    return 'MARK:' + util.int_hex(user_id)
Example #9
0
def userHash(user_id):
    '''
    userhash对象
    nick 用户名
    '''
    return 'USER:' + util.int_hex(user_id)
Example #10
0
def topicReadSet(topic_id):
    '''
    话题浏览记录
    有效期一天:即一天之内访问统计一次
    '''
    return 'TOPIC:READ:' + util.int_hex(topic_id)
Example #11
0
def groupShareZet(group_id):
    '''
    小组分享列表
    '''
    return 'SHARE:' + util.int_hex(group_id)