Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(remote): persistent verified cache catalog with bounded eviction (#151)

2 months ago

3c58375
Authored
Davy7/20/2026, 2:51:37 PM
Rebuild the remote chunk cache as a persistent, revision-aware, verified
catalog backed by remote_cache_entries. Cache keys now derive from
(library_id, relative_path, provider_revision, expected_size) so a
replaced remote object cannot reuse stale bytes. Default budget is 2 GiB
(was unbounded). LRU uses persistent wall-clock timestamps; pinned
active/buffering tracks survive eviction; startup reconciliation removes
orphaned data files and inconsistent catalog rows. Adds
get_remote_cache_usage and clear_remote_cache IPC commands.

Parentc5a53c5

12 files changed
  • docs/references/contracts/settings.md+26−0
  • src-tauri/src/audio/chunked_cache.rs+56−5
  • src-tauri/src/commands/remote_library/mod.rs+31−0
  • src-tauri/src/config.rs+2−2
  • src-tauri/src/lib.rs+2−0
  • src-tauri/src/remote/cache_catalog.rs+1262−0
  • src-tauri/src/remote/control_db.rs+184−10
  • src-tauri/src/remote/mod.rs+1−0
src-tauri/src/remote/sync/revision.rs
+46
−16
  • src-tauri/src/services/playback.rs+8−0
  • src-tauri/src/services/playback_source.rs+91−24
  • src-tauri/src/state/remote.rs+32−8