Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ttl cache instead of lru #220

Merged
merged 2 commits into from
Jul 15, 2023
Merged

Use ttl cache instead of lru #220

merged 2 commits into from
Jul 15, 2023

Conversation

aome510
Copy link
Owner

@aome510 aome510 commented Jul 15, 2023

Replace lru cache with ttl cache.

Context

Using ttl cache avoids the problem that the cached Spotify data becomes invalid after sometimes. For example, daily mix playlist changes the list of tracks everyday, hence playing a song from the cached playlist won't work.

@aome510 aome510 merged commit 335ea4b into master Jul 15, 2023
3 checks passed
@aome510 aome510 deleted the use-ttl-cache branch July 15, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant