added compatibility for Predis 1.0