Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
1
Description
Currently on this PHP documentation : https://docs.couchbase.com/sdk-api/couchbase-php-client/classes/Couchbase-InsertOptions.html#method_expiry InsertOptions expiry time is mentioned in milliseconds whereas for Upsert/Replace are mentioned in seconds and can also accept a DateTimeInferface https://docs.couchbase.com/sdk-api/couchbase-php-client/classes/Couchbase-ReplaceOptions.html#method_expiry. , https://docs.couchbase.com/sdk-api/couchbase-php-client/classes/Couchbase-UpsertOptions.html#method_expiry .
As expiry is treated the same for Insert/Upsert/Replace operations, InsertOptions expiry time is also in seconds. So document https://docs.couchbase.com/sdk-api/couchbase-php-client/classes/Couchbase-InsertOptions.html#method_expiry needs to be updated to correct the InsertOptions#expiry time in seconds instead of milliseconds just like Upsert/Replace.