WillAbides / bindown

MIT License
14 stars 2 forks source link

file-locking cache #136

Closed WillAbides closed 1 year ago

WillAbides commented 1 year ago

Uses lockedfile to get a lock on a directory before reading or writing.

Adds a bindown cache clear command.

The new cache has a ReadOnly option that isn't currently being used. I changed my mind on it at the last minute because even with bindown cache clear it is annoying to require sudo to rm -rf the cache dir.

In the future I want to put the default cache in $XDG_CACHE_HOME and share it between bindown configs. When we have that it will make sense to use a read-only cache.