Skip to content

[5.5][Collections] Use persistent cache for GitHub package metadata (#3441) #3453

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

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Apr 28, 2021

Cherry-pick #3441 for 5.5.

…lang#3441)

* [Collections] Use persistent cache for GitHub package metadata

Motivation:
Currently we use transient in-memory cache for storing GitHub package metadata.

Modifications:
- Add generic `SQLiteBackedCache` in Basics
- Change `ManifestLoader` to use `SQLiteBackedCache`
- Change `GitHubPackageMetadataProvider` to use `SQLiteBackedCache`
- Adjust tests

* Undo swiftformat changes

* Fix CMake build

* Rename name to tableName

* Document 'tableName'
@yim-lee
Copy link
Contributor Author

yim-lee commented Apr 28, 2021

@swift-ci please test

@tomerd tomerd added the 5.5 label Apr 28, 2021
@yim-lee yim-lee merged commit 3cc139c into swiftlang:release/5.5 Apr 28, 2021
@yim-lee yim-lee deleted the gh-data-cache-5.5 branch April 28, 2021 03:53
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