redis not global

redis not global variable