a command doCmd for redis
reuse code for redis driver