Skip to content

boinkkitty/go-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  In-Memory Redis Replica (with AOF Persistence)

A lightweight in-memory database written in Go that replicates basic Redis behavior. This server supports several core Redis commands and provides append-only persistence using a mutex to ensure thread safety.


๐Ÿš€ Features

  • ๐Ÿง  In-memory key-value store
  • ๐Ÿ’พ Append-Only File (AOF) persistence
  • ๐Ÿ”’ Mutex-protected concurrent writes
  • ๐ŸŽฏ Redis-compatible command interface
  • ๐Ÿ› ๏ธ Supports basic string and hash operations
  • ๐Ÿ“ก Listens on the default Redis port: 6379

๐Ÿ’ฌ Supported Commands

Command Description Usage
PING Health check (returns PONG) PING [message]
SET Sets a string key SET key val
GET Gets a string value GET key
HSET Sets a field in a hash HSET key field1 val1 [field2 val2 ...]
HGET Gets a field value in a hash HGET key field
HGETALL Gets all fields/values in hash HGETALL key

Installation

Server

  1. Clone the repository:
    git clone https://github.com/boinkkitty/go-redis.git
  2. Run the server:
    cd go-redis
    make server

Client

  1. Run client:
    make client

About

A lightweight in-memory database written in Go that replicates basic Redis behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors