Conversation
JonPurvis
left a comment
There was a problem hiding this comment.
Great implementation!
I had one question regarding resolveCacheExpiry() which I've commented in the file.
Other than that, could you add some tests that:
- Cover
DateTimeImmutablebeing returned - Assert the cached entry is written with the correct expiry
- Any edge cases in
resolveCacheExpirysuch as 0, negative, date in the past
Thanks!
…-expiry # Conflicts: # src/Data/CachedResponse.php
|
Thanks for taking a look at my feedback, I'll get round to giving this a look over later this week / early next week. If it's all good, we can get it merged and get a new release out! |
JonPurvis
left a comment
There was a problem hiding this comment.
👍 Looks good to me.
I'll speak with @Sammyjo20 next week (if not before) to see if he's happy to get this merged and arrange a release of this package!
Thanks for your work on this!
|
The PR looks good to me but it still looks like it would be a breaking change because we're completely removing the |
|
Hey @Sammyjo20 We could perhaps release this as v4? We'd need a short upgrade guide somewhere though! |
No description provided.