Blink DB Documentation v1.0.0
Blink DB Documentation
Loading...
Searching...
No Matches
resp_decoder.hpp File Reference

Redis Serialization Protocol (RESP) Decoder. More...

#include <string>

Go to the source code of this file.

Classes

class  Resp
 Response object for RESP commands. More...
class  RespDecoder
 RESP Decoder class. More...

Macros

#define CRLF   "\r\n"

Enumerations

enum  Operation { SET , GET , DEL , UNKNOWN }
 Enum for RESP operations. More...

Detailed Description

Redis Serialization Protocol (RESP) Decoder.

This file contains the implementation of a RESP decoder thats responsible for parsing RESP commands and extracting the operation, key, and value from the input buffer. It also handles error cases and provides a structured response object.

Author
Sai Kasyap Jannabhatla
Version
1.0
Date
March 2025

Enumeration Type Documentation

◆ Operation

enum Operation

Enum for RESP operations.

This enum defines the possible RESP operations that can be parsed from the input buffer. It includes SET, GET, DEL, and UNKNOWN.