read-response ( -- response )


Vocabulary
redis.response-parser

Definition
USING: combinators io math.parser redis.response-parser.private
sequences ;

IN: redis.response-parser

: read-response ( -- response )
readln unclip {
{ 58 [ string>number ] }
{ 43 [ handle-response ] }
{ 36 [ string>number read-bulk ] }
{ 42 [ string>number read-multi-bulk ] }
{ 45 [ handle-error ] }
} case ;