Hacker News new | ask | show | jobs
by mpeg 825 days 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.
1 comments

Globs are a thing?
Weird 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