redis to predis refactoring

this pr fix #25 but it break #22