[PR #230] [MERGED] Improve TTL caching and handling #679

Closed
opened 2026-03-02 23:49:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/230
Author: @aome510
Created: 8/3/2023
Status: Merged
Merged: 8/3/2023
Merged by: @aome510

Base: masterHead: improve-ttl-cache


📝 Commits (3)

  • df75079 increase CACHE_DURATION to 3h
  • 5b5cf89 re-request context data if not found in cache
  • 099863f add timer to avoid making multiple requests

📊 Changes

2 files changed (+17 additions, -9 deletions)

View changed files

📝 spotify_player/src/client/handlers.rs (+15 -7)
📝 spotify_player/src/state/data.rs (+2 -2)

📄 Description

  • increase TTL cache duration to 3h
  • update context fetching code to handle cache expired

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/230 **Author:** [@aome510](https://github.com/aome510) **Created:** 8/3/2023 **Status:** ✅ Merged **Merged:** 8/3/2023 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `improve-ttl-cache` --- ### 📝 Commits (3) - [`df75079`](https://github.com/aome510/spotify-player/commit/df750799b0e5881a3e479079a2350c28adb4ff7f) increase `CACHE_DURATION` to `3h` - [`5b5cf89`](https://github.com/aome510/spotify-player/commit/5b5cf89e20bd5f274b03737e93154d65c3cd5134) re-request context data if not found in cache - [`099863f`](https://github.com/aome510/spotify-player/commit/099863ffd95ac7faff469c942c07be772ea633c5) add timer to avoid making multiple requests ### 📊 Changes **2 files changed** (+17 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/client/handlers.rs` (+15 -7) 📝 `spotify_player/src/state/data.rs` (+2 -2) </details> ### 📄 Description - increase TTL cache duration to `3h` - update context fetching code to handle cache expired --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:49:20 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#679
No description provided.