In the 2.x SDK the expiry was set as either an offset from the current time (if less than 30 days) or an absolute unix timestamp. In the 3.x SDK you need to pass in a Java Duration object to specify the expiry.
I’m wondering if there is a bug here as when we set a duration of greater than 30 days the documents do not appear in Couchbase. We are trying to set an expiry of 90 days. Looking at the SDK code it looks like the Duration is just converted to seconds and passed through so I am assuming that a value of 90 days is then treated as a unix timestamp which is in the past and the document is expired immediately.
How are we able to set longer expiration times with the 3.x SDK? Am I missing something?