def insert2redis(ids, dataList):
    r = redis.Redis(host=REDIS_ADDR, port=REDIS_PORT, db=REDIS_DB)
    if (len(ids) != len(dataList)):
        return ''
    for (k, v) in enumerate(ids):
        r_key = v
        r_value = dataList[k]
        r.set(r_key, json.dumps(r_value))
def insert2redis(ids, dataList):
    r = redis.Redis(host=REDIS_ADDR, port=REDIS_PORT, db=REDIS_DB)
    if (len(ids) != len(dataList)):
        return 
    for (k, v) in enumerate(ids):
        r_key = v
        r_value = dataList[k]
        r.set(r_key, json.dumps(r_value))