add support for generating redis protocol for any command