mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #675] [MERGED] Add size limit to cache #1012
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1012
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/675
Author: @Johannesd3
Created: 3/19/2021
Status: ✅ Merged
Merged: 5/1/2021
Merged by: @sashahilton00
Base:
dev← Head:limit-cache-size📝 Commits (3)
e9dc9cdAdd size limit to cachede6bc32Add documentation, logging and testse355d4aAdd cache-size-limit command line argument📊 Changes
6 files changed (+429 additions, -35 deletions)
View changed files
📝
Cargo.lock(+28 -0)📝
Cargo.toml(+1 -0)📝
core/Cargo.toml(+1 -0)📝
core/src/cache.rs(+310 -32)📝
playback/src/player.rs(+7 -2)📝
src/main.rs(+82 -1)📄 Description
Limits cache size by calculating the size of the directory on loading of the application and keeping track of additions and removals. As soon as the limit is exceeded, the least recently accessed files are deleted.
Resolves #642.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.