Skip to content

thecodingshrimp/cpp_redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Learning C++ by recreating redis incrementally.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published