Skip to content

SalahDevp/redis-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis From Scratch in c++

this project contains:

  • tcp server using socket programming.
  • async io and event loop.
  • a parser to parse commmands.
  • key value in memory database.
  • a command line tool to interact with the server.

The Protocol

Overview

the protocal uses tcp and listens on port 6379 by default.

Message Structure

request:

+-----+---------+
| len | payload |
+-----+---------+

len: 32bit unsigned int payload: string

response:

+--------+-----+---------+
| status | len | payload |
+--------+-----+---------+

status: 16bit unsigned int len: 32bit unsigned int payload: string

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published