Skip to content

Implements a simple database that stores and retreives values by keys using the File system

Notifications You must be signed in to change notification settings

hassanin/database-server-logbased

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-server-logbased

Implements a simple database that stores and retreives values by keys using the File system.

-Introduction: This project implemnets a simple databse using the local file system. It performs automatic compaction of the database logs and helps keep the size of the database within operable arranges by trimming and merging deleted records.

example usage

mainDatabase = LogDataBase.getTheDatabase(mode: LogDataBase.DataBaseMode.SYNCHRONOUS, writeToDiskAfter: 10); String key = $"Mohamed-{i}";
String insertedValue = $"test123213213-{i}";
mainDatabase.Add(key, insertedValue).Wait();
var retrievedValue = mainDatabase.Get(key).Result;
Assert.AreEqual(retrievedValue, insertedValue);

About

Implements a simple database that stores and retreives values by keys using the File system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published