mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
The schema key, its version and the keys they cover were three constants per store, retyped at each of the six places that used them and interchangeable enough that one store's version could be checked against another's keys. They are a `VersionedCacheStore` now, so a store is declared once and the startup drop is a loop over a table. The two reader gates were the same four lines, and a third read path was still checking the data key without the stamp, so the LaunchBox entry points disagreed about what populated meant. All three call one helper. The drop probed each key before deleting it, spending a round trip per key to learn what `unlink` reports anyway, and `delete` freed the store on the main thread. Both imports also merge into their hashes, so each now drops a stale store itself rather than trusting the drop to have happened at startup. The alternate name index holds the bare id its reader wants, like the two title indexes beside it, and follows through the same helper. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>