renderorange / pasteburn

Sharable, encrypted, ephemeral pastebin.
https://pasteburn.io
MIT License
2 stars 1 forks source link

Switch from sqlite to redis #3

Open renderorange opened 2 years ago

renderorange commented 2 years ago

sqlite in this project is basically functioning as a key value store, which is what redis is by design. redis also supports setting expire time, which means removing the dep of a cronjob running to clear out the expired secrets.

renderorange commented 2 years ago

Redis supports storing data to disk on shutdown, which would solve the issue of data persistence for server patching and reboots.