Database with auto-expiration and constant reading/writing?

by R8T3D   Last Updated October 19, 2019 22:05 PM

I am midway through my software development project in Node.js and have encountered a fork in the road. I need to create a "database" or JSON file, etc, that will automatically delete an entry after it has been in for X amount of seconds. An entry is simply just a random string.

Should I use JSON and write an asynchronous function that runs in the background? Should I use some kind of light database?



Related Questions


Updated May 16, 2017 11:05 AM

Updated April 14, 2016 08:02 AM

Updated October 16, 2017 09:05 AM

Updated February 12, 2019 21:05 PM