3 ms·
Maybe more things should have TTL capability in computing. Like why did we have it for cookies and not localstorage or Indexdb? Is there any filesystem with t
by conradfr 4y ago
Maybe more things should have TTL capability in computing.
Like why did we have it for cookies and not localstorage or Indexdb?
Is there any filesystem with ttl support?
- mro_name 4y agocompost! you could emulate that with $ find, but expiring stuff will require quite a mind-shift, I guess. I do similar for mp3 recordings at https://codeberg.org/mro/internet-radio-recorder/src/commit/ad76936acff83c09bdb2074a0b049d2a631d3994/pages/app/cron/weekly.sh#L11 https://codeberg.org/mro/internet-radio-recorder/src/commit/...
- origin_path 4y agoIt's not really TTL that's needed here, it's a notion of file/directory tree priority integrated with the filing system APIs. Think about it: there's no reason not to use every single byte of your disk. The only reason we have to leave so much empty space as padding today and manage it so manually is because the OS itself won't automatically delete unimportant files when needed. If it did then apps could just generate caches with abandon safe in the knowledge that they'd be overwritten when necessary. Also, the user would always see the "true" amount of free space, i.e. actual space - caches - tmp files.