Issue with redis class