This project is a simple Redis-like server implemented in Go.
It supports a few basic Redis commands and can be tested using the official redis-cli.exe
client.
Maintained by: SanskarMali726
- Experimental / Learning project
- Not a full Redis replacement
- Built to practice Go, server development, and RESP protocol
- Go language
- TCP server development
- RESP protocol handling (Redis protocol)
- Basic persistence with AOF
- Client-server communication testing using redis-cli
This project is open source under the MIT License.
- Implements basic Redis commands:
PING
SET key value
GET key
DEL key
EXISTS key
- Uses RESP (REdis Serialization Protocol) for communication
- AOF (
database.aof
) persistence support
Before running the server, make sure you have:
- Clone the repository: git clone https://github.com/SanskarMali726/Redis-server-go.git
- Run the Go server:
go run .
By default, the server listens on: 127.0.0.1:6379
Open a terminal in your Redis installation folder (where redis-cli.exe is located).
Connect to your server:
redis-cli -h 127.0.0.1 -p 6379
Try out commands:
127.0.0.1:6379> PING PONG
127.0.0.1:6379> SET language Go OK
127.0.0.1:6379> GET language "Go"
127.0.0.1:6379> SET framework "Chi Router" OK
127.0.0.1:6379> GET framework "Chi Router"
127.0.0.1:6379> DEL framework (integer) 1
127.0.0.1:6379> GET framework (nil)