Hi there,
Not sure if it’s a bug or I’m doing something wrong.
If I do this:
bucket.insert(document, expiry, TimeUnit.SECONDS);
Or this:
bucket.upsert(document, expiry, TimeUnit.SECONDS);
The created document always have the meta attribute expiration
set to zero.
However if I touch the document after it has been created the expiration is set correctly, for example:
bucket.insert(document, expiry, TimeUnit.SECONDS);
bucket.touch(docId, expiry);
FYI I’m using Couchbase Java SDK 2.5.6.
Any clarification in this regard would be much appreciated.
Many thanks & regards.