thesecretmaster / predis-v0

Like redis, but parallel and written from scratch for fun!
GNU General Public License v3.0
1 stars 0 forks source link

Persist data #10

Open thesecretmaster opened 5 years ago

thesecretmaster commented 5 years ago

It should be possible to save the data to the disk on every write, so that we can recover it on startup. My current thoughts about this feature is that each type should have a char *dump(void *val) and a void *load(char *val) which will be used internally on set and update to save the dumped version so a .txt file. That'll be deleted on del and etc etc.

Don't know if we'll have problems with race conditions or anything, just random thoughts.