예제 #1
0
def id_score_list_new(user_id, id_score_list):
    key = REDIS_REC_USER_TAG_CAN_REC%user_id
    redis.set(key, dumps_id_score(id_score_list))
예제 #2
0
#!/usr/bin/env python
#coding:utf-8
from _db import redis, R

R_GID = R.GID()

if not redis.exists(R_GID):
    redis.set(R_GID, 9912499)

def gid():
    return redis.incr(R_GID)

if __name__ == '__main__':
    print gid()
    #redis.set(R_GID, 9912499)