Skip to main content

Module protocol

Module protocol 

Source
Expand description

RESP3 protocol parser and serializer.

Implements a subset of the Redis RESP3 wire protocol sufficient for:

  • Parsing client commands (arrays of bulk strings)
  • Serializing responses (simple strings, errors, integers, bulk strings, arrays, maps, and null)

Reference: https://github.com/redis/redis-specifications/blob/master/protocol/RESP3.md

Enums§

RespValue
A value in the RESP3 protocol.

Functions§

parse_value
Parse a single RESP value from an async buffered reader.
write_value
Write a RESP value to an async writer.