added phpiredis hash function