FakeRiak.Redis (fake_riak v0.1.0)

Copy Markdown View Source

Fake Redis endpoint speaking RESP (the Redis serialization protocol).

Bucketless, so it uses the bucketless side of FakeRiak.SimpleStore. Supported commands: PING, ECHO, SET, GET, DEL, EXISTS, COMMAND, SELECT, QUIT. Extra SET options (NX, XX, EX, ...) are accepted but ignored — SET always stores and replies +OK.

Requests are parsed as RESP arrays of bulk strings (what real clients such as redis-cli send); simple inline commands (LF- or CRLF-terminated) are also accepted. Malformed RESP gets an error reply and the connection is closed.