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

Add the promised FileCache class #83

Merged
merged 5 commits into from
Mar 9, 2024
Merged

Add the promised FileCache class #83

merged 5 commits into from
Mar 9, 2024

Conversation

Nadyita
Copy link
Contributor

@Nadyita Nadyita commented Mar 5, 2024

This class implements a StringCache that utilizes a directory to store the cached data. I pretty much just ported the old FileCache to AMP3. Tests were added as well, but I did't figure out why composer didn't check out Amp\Cache's test-directory, so I copied and pasted them.

@kelunik
Copy link
Member

kelunik commented Mar 7, 2024

I did't figure out why composer didn't check out Amp\Cache's test-directory, so I copied and pasted them.

They're set to be ignored on exports, so they don't pollute the zip files on installation: https://github.com/amphp/cache/blob/218bb3888d380eb9dd926cd06f803573c84391d3/.gitattributes#L10

preferred-install can be used to avoid copies: https://github.com/revoltphp/event-loop-adapter-react/blob/49521050528d10e058b3a2eae5316096235b10a7/composer.json#L42

@Nadyita
Copy link
Contributor Author

Nadyita commented Mar 9, 2024

Should I keep it the way it is, or modify the composer.json to pull in the source for amphp/cache, so that future-added tests are executed as well?

@trowski trowski merged commit 1eca93a into amphp:3.x Mar 9, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants