Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Inline command format support #4

@nilium

Description

@nilium

This isn't currently supported because it hasn't been terribly useful in testing, but it would help to be compatible with systems where redis-cli isn't available (i.e., telnet, as mentioned in the docs; socat; or netcat).

This could be handled similarly to simple strings, except the decoder would need to tokenize the string into a list of space-delimited fields once a CRLF is encountered. So, <<"foo bar\r\n">> would be equivalent to <<"*2\r\n" "$3\r\nfoo\r\n" "$3\r\nbar\r\n">> as a result, being equivalent to redis-cli sending its CLI arguments.

Docs: https://redis.io/topics/protocol#inline-commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions