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

Fix for expiry ttl, as couchbase >= v4, now can use DateTimeInterface for the ttl #5

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

srjlewis
Copy link
Collaborator

Edge case fix for the ttl

@Geolim4
Copy link
Member

Geolim4 commented Jun 14, 2024

Hello,

they finally added DateTime support for this ?

What a revolution 😂

Thank you !

@Geolim4 Geolim4 merged commit 2c93fa3 into PHPSocialNetwork:master Jun 14, 2024
8 checks passed
@srjlewis
Copy link
Collaborator Author

Hi @Geolim4

That would be wishful thinking 🤣, inside to the php part of the extention, they convert the DateTime back to a timestamp, as the C part of the extention can now take 2 expiry paramaters, but on the face of it, it is now supported.

And this changed is not documented anywhere in the PHP SDK 🤨.

https://github.com/couchbase/couchbase-php-client/blob/0f9a2d2973e3c603aaa9598f2fdd11b9fb4846f4/Couchbase/UpsertOptions.php#L77-L87

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