4 ms·
This is also why in my custom cache I back it with sqlite – much easier to delete one db file than thousands of pickle files.
by mpeg 3y ago
This is also why in my custom cache I back it with sqlite – much easier to delete one db file than thousands of pickle files.
- AlecSchueler 3y agoGlobs are a thing?
- mpeg 3y agoWeird comment... yes, they are, but what is faster for me to type `rm .cache_dir/function_name*.pickle` or just to delete the one sqlite file in my file manager / vscode file tree. Regardless, there are other reasons why sqlite is nice for this, you gain control over locking and thread safety without having to implement it all from scratch