# README
redis-written-in-go
godisDB is a Redis-like in-memory key-value Database which is multithreaded unlike Redis.
Table of Contents
Commands
godisDB supports the following commands as of now:
PING, SET, GET, SETNX, MSET, MGET, INCR, DECR, RPUSH, LPUSH, RPOP, LPOP, LRANGE, DEL, EXPIRE, TTL
Setup
To set up godisDB:
- Clone the repository:
git clone https://github.com/sathwikreddygv/redis-written-in-go.git
- Run the server
go run main.go resp_parser.go resp_writer.go execute_commands.go persistence.go
Usage
- redis-cli can be used as a client as godisDB also uses the Redis Serialization protocol (RESP).
- godisDB runs on port 6369 (Redis runs on 6379)
- Use this command to connect to godisDB
redis-cli -p 6369
- Now you are all set to talk to the godisDB server. Try "PING" command to start with and you should receive a "PONG" as response!