← All work

Backend · Dev tool

myredis

A Redis clone built from scratch — RESP protocol parser, command layer, key-value store, and TCP server with tests.

About

myredis is a Redis clone built from scratch: a TCP server speaking the RESP protocol, a command layer, and a key-value store.

Layout

  • server.py — TCP server
  • resp.py — RESP protocol parser
  • commands.py — Command layer
  • store.py — Key-value store
  • tests/resp_test.py and store_test.py

Stack

Python 3RESP protocolTCP sockets