REDIS not global var

redis variable not global