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 cache duration configurability #76

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Add cache duration configurability #76

merged 4 commits into from
Apr 12, 2024

Conversation

alxndrmlr
Copy link
Contributor

Re: #75 this is my attempt to contribute back and provide the ability to set the duration for how long something is persisted in the cache.

I opted to introduce it as a non-breaking change, let me know what you think

@freekmurze
Copy link
Member

It seems like the tests are failing, could you have a look?

@alxndrmlr
Copy link
Contributor Author

It seems like the tests are failing, could you have a look?

It might need some help on this @freekmurze the test was passing locally for me, I modified it to check the cache one-second beyond the expiration duration (we'll see if that was the issue re: timing being too tight). The test passes locally for me with this change (and did prior)

image

@freekmurze freekmurze merged commit 52f1b83 into spatie:main Apr 12, 2024
6 checks passed
@freekmurze
Copy link
Member

Thank you!

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