Skip to content

Question about the difference between the song cache and downloaded songs #940

Locked Answered by z-huang
matchboxbananasynergy asked this question in Q&A
Discussion options

You must be logged in to vote

You're assumption is correct. The cache is same as ViMusic's cache, following the least recently used (LRU) strategy. Downloads can be viewed as cache, too, but with unlimited quota. The data flow is: internet -> cache -> download cache -> player. The player searches for song in the download cache and the cache first. Only if the song doesn't exist in both cache will the player fetch data from the internet.
You may notice that some downloads are super fast. That's because if the song is cached, the app just makes a copy from the cache to the download cache.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@owencz1998
Comment options

Answer selected by matchboxbananasynergy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants