https://github.com/deanlogan/redis-clone
This is a basic Redis clone that can handle PING, SET and GET commands, it's built using go
https://github.com/deanlogan/redis-clone
go redis redis-clone
Last synced: 2 months ago
JSON representation
This is a basic Redis clone that can handle PING, SET and GET commands, it's built using go
- Host: GitHub
- URL: https://github.com/deanlogan/redis-clone
- Owner: DeanLogan
- Created: 2024-05-07T17:41:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-04-25T10:56:42.000Z (3 months ago)
- Last Synced: 2026-04-25T12:25:53.862Z (3 months ago)
- Topics: go, redis, redis-clone
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```sh
go run app/server.go
```