Skip to content

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
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