hybrid-disk-cache icon indicating copy to clipboard operation
hybrid-disk-cache copied to clipboard

Support for in-memory and temporary sqlite databases

Open dawiidio opened this issue 2 years ago • 0 comments

I added support for those in memory and temporary modes in sqlite. Recently I have encountered some problems while trying to deploy and test my website on docker and on DigitalOcean App cloud. My website uses library remix-image which then uses hybrid-disk-cache under the hood.

First problems occured when I wanted to run only temporary (or fully in-memory) db for testing purposes on my local machine, or test same setup on cloud app with very restricted filesystem permissions where I wanted to keep database in-memory or in specified directory while at the same time forward files to other volume.

In this PR I was able to maintain backward compatibility so all earlier tests are green, no breaking changes, I just expanded the interface by adding new property dbPath

dawiidio avatar Nov 13 '22 16:11 dawiidio