Skip to content

A lightweight Redis-like server implemented in Go, supporting basic commands like PING, ECHO, SET, GET, SAVE, CONFIG, and KEYS. Includes robust error handling for invalid commands and incorrect argument counts.

Notifications You must be signed in to change notification settings

patelsmuseum/custom-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Redis in Go By Purshotam

This is a simple implementation of a Redis-like server written in Go, supporting a set of basic commands with both uppercase and lowercase variations.

Supported Commands

  • PING / ping: Test the server connection.
  • ECHO / echo: Echo back the provided message.
  • SET / set: Set a key-value pair.
  • GET / get: Get the value associated with a key.
  • SAVE / save: Save data to disk (example command, may vary in real use).
  • CONFIG / config: Get or set configuration parameters.
  • KEYS / keys: Retrieve all keys stored in the server.

Provide Error handling for wrong commands and wrong number of arguments .

Related Images:

redis-commands

server-logs

server-logs

For Setting up the project follow the steps below:

Prerequisites:

  • Go installed

Steps:

  • Clone the repository
  • Run the project using go run *.go
  • Use redis-cli to connect to the server and test the commands

Feel free to contribute to the project pull requests are welcome

About

A lightweight Redis-like server implemented in Go, supporting basic commands like PING, ECHO, SET, GET, SAVE, CONFIG, and KEYS. Includes robust error handling for invalid commands and incorrect argument counts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages