Skip to main content

Module db_cache

Module db_cache 

Source
Expand description

Process-wide handle to the app database for read-through caches living in this crate (lyrics, metadata enrichment). Registered once at startup; every cache degrades gracefully to fetch-only when unset (tests, early boot).

Functionsยง

get
The registered database, if any. Public so caches in crates above utils (e.g. discord-presence cover art) share the same handle.
init
Register the database used by the persistent caches. Called once in main.