Skip to content

This is a basic Redis clone that can handle PING, SET and GET commands, it's built using go

Notifications You must be signed in to change notification settings

DeanLogan/redis-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Clone

This is a clone of the Redis database, implemented in Go. It aims to replicate some of the key features of Redis, including:

  • Key-value storage: Like Redis, this clone allows you to store and retrieve data using keys.
  • Master-replica replication: The master.go and replica.go files handle the implementation of master and replica nodes, allowing for data replication across multiple nodes.
  • RDB persistence: The rdbReading.go file handles reading from RDB files, providing a form of data persistence.

Structure

The project is structured as follows:

  • master.go: Contains the implementation for the master node.
  • rdbReading.go: Handles reading from RDB files.
  • replica.go: Contains the implementation for the replica nodes.
  • responses.go: Handles the responses sent by the server.
  • server.go: Contains the server implementation.

How to Run

To run this project, you need to have Go installed on your machine. Once you have Go installed, you can run the project using the following command:

go run app/server.go

About

This is a basic Redis clone that can handle PING, SET and GET commands, it's built using go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages