示例#1
0
def fetch_hacker():
    key = 'hacker'
    ret = list()
    result = redis_client.lrange(key, 0, 20)
    for r in result:
        ret.append(json.loads(r))
    return ret
示例#2
0
def get_v2ex():
    key = 'v2ex'
    ret = list()
    result = redis_client.lrange(key, 0, 20)
    for r in result:
        ret.append(json.loads(r))
    return ret