Skip to content

In memory storage with having file storage as a backup

Notifications You must be signed in to change notification settings

1995parham-learning/eldis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Elahe's Redis implementation (Eldis)

Eldis means "old"

Introduction

Eldis has two commands named "GET" and "SET". "SET" command gets a key, and it's value and puts them in the memory as you can guess the "GET" method get a key and returns its related value.

There is a threshold for memory and when the number of pairs in the memory reaches the threshold it flushes the data into a file and so on, when it wants to search for a value it first searches the memory then the latest file and so on.

Q&A

  1. How to understand which file is newer and which one older?

I used time at the end of the file name.

  1. What if the file is too big?

For better performance I don't read whole the file I use binary search to read lines.

About

In memory storage with having file storage as a backup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages