Skip to content

in-memory database, cache - Redis serialization protocol

Notifications You must be signed in to change notification settings

mtellami/in-memory-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SERIS / DATABASE SERVER

Seris is database server written in Golang inspired by Redis using serialization protocol specification (RESP).

                    .__        
  ______ ___________|__| ______
 /  ___// __ \_  __ \  |/  ___/
 \___ \\  ___/|  | \/  |\___ \ 
/____  >\___  >__|  |__/____  >
     \/     \/              \/ 

RUN

go run main.go

Build

go build -o resis main.go

Usage

  • Initialize seris server
package main

import (
	"fmt"
	"seris/seris"
)

func main() {

	server, err := seris.NewServer(&seris.Config{
		Port: 6379,
		EnableAof: true,
		AofFile: "database.aof",
	})

	if err != nil {
		fmt.Println(err)
		return
	}

	server.Listen()
}
  • Connect to the server using a redis client
$ redis-cli

Data Persistence

  • Enable / Desable data save on dist
Config {
    EnableAof: false
    ...
}

Supported Commands:

  • PING
  • SET
  • GET
  • DEL
  • HSET
  • HGET
  • HGETALL
  • HLEN
  • HDEL

About

in-memory database, cache - Redis serialization protocol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages