redis to predis refactoring 

#1