parsing redis protocol