Skip to content

mreza79/Redisak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pseudo redis implementation in go

For practice, I implemented a pseudo redis in go.

Brief description

You can set, get, and delete a key-value database on memory
create new database (by default its name is "default")
get all database
query based on regex on keys
dump database onto .csv file. It will create a directory ./dumps and then create a file if not exists based on input
load .csv onto memory
For the scalability section, I split every 100 data into a section

Run

To run, you should run go run main.go in the terminal or run go build in the main directory and then run ./redisak in terminal

after for set run set city_temp 18
for get run get city
for del run del city_temp
for keys run keys city_*
for use/add new database run use new_database
for get all database run list
for dump run dump default ./dumps/default
for load run load ./dumps/default default
for exit run exit

requirements

go version 1.18

About

pseudo redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages