Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mhughdo/src

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SRC (Simple Redis Clone)

A simple Redis clone written in Go.

Running the server

  • Run as a master: go run app/server.go
  • Run as a replica: go run app/server.go --port 6380 --replicaof "localhost 6379"

Features

Supported commands

String

  • SET
  • GET
  • INCR

Transactions

  • MULTI
  • EXEC
  • DISCARD

Generic

  • KEYS
  • TYPE
  • CONFIG

Connection

  • PING
  • HELLO
  • INFO
  • CLIENT

Streams

  • XADD
  • XRANGE
  • XREAD

Replication

Partially support for single leader replication. The following commands are supported:

  • SAVE
  • PSYNC
  • REPLCONF
  • WAIT

About

Simple Redis Clone

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.