move redis-wrapper into reuseable module.