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
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