Expiry stopped to work


I’m using bucket.insert to write documents to a bucket.
I’m also passing option object: {expiry: X} which is suppose to be the TTL for each document.
I debug my code and see it is passed right but for some reason when I check the meta of documents in the bucket they all have expiration set to 0.

locally it works for me (windows) but on server or any other machine (linux) it doesn’t.
currently using node 11.4, couchbase 5.0.1 and SDK version is 2.6.2.

Any idea what might causing it? it used to work?
Any possible work around to set an expiry for documents?


May be you mutate document after setting expiration, as each mutation without expiry options lead to remove previous expiry