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

[Player] Unified caching (2/X): Unified CacheStorage setup #175

Open
wants to merge 2 commits into
base: alberto/remove-legacy-player-impl
Choose a base branch
from

Conversation

asendra
Copy link
Collaborator

@asendra asendra commented Nov 29, 2024

Context

With the legacy Player implementation out of the picture, we can start migrating all GenericMediaPlayer implementations to use the new unified caching layer.

This will allow us to enforce a LIFO with maximum storage size quotas between all of them, and the possibility to inform of the storage usage and the ability to clear the cache as requested.

Description

This PR only takes care of initializing the CacheStorage, and passing it to the relevant layers in preparation.

@asendra asendra requested a review from a team as a code owner November 29, 2024 09:34
@asendra asendra force-pushed the alberto/setup-unified-caching branch from 99798cd to c236d9e Compare November 29, 2024 10:53
@asendra asendra force-pushed the alberto/remove-legacy-player-impl branch from c14cd75 to a81e746 Compare November 29, 2024 11:00
@asendra asendra force-pushed the alberto/setup-unified-caching branch from c236d9e to 4f506a7 Compare November 29, 2024 11:18
@asendra asendra changed the title [Player] Wiring up the unified CacheStorage [Player] Unified caching (2/X): Unified CacheStorage setup Nov 29, 2024
Copy link
Contributor

@ceciliasaraiva ceciliasaraiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, just one tiny suggestion

@@ -8,7 +8,8 @@ import XCTest
final class PlayerTests: XCTestCase {
private var player: Player!
private var playerEventSender: PlayerEventSenderMock!
private var dbQueue: DatabaseQueue!
private var offlineDbQueue: DatabaseQueue!
private var cachedDQueue: DatabaseQueue!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] small typo I guess to make it consistent with the above

Suggested change
private var cachedDQueue: DatabaseQueue!
private var cachedDbQueue: DatabaseQueue!

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.

2 participants