Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 902 Bytes

File metadata and controls

41 lines (28 loc) · 902 Bytes

CPP Redis

This is a hobby project of coding Redis fundamentals in C++. I use it to gain more experience in C++.

It uses multithreading for serving client requests and snapshot its current state to/from disk by using a background process through fork().

Installation

cmake --build build

Execution

./build/database [port]

Default port is 3000.

Connection

You can connect via TCP.

Supported Types and Commands

Hashmap

The current version supports multiple types inside a hashmap. I might extend the types if there is something interesting to learn from it.

List commands

  • LADD
  • LGET
  • LDEL

Native commands

  • SET
  • GET
  • DEL

Hashmap commands

  • HSET
  • HGET
  • HDEL

Snapshotting

  • SAVE
  • LOAD