Maintaining document TTL on replace

8 views
Skip to first unread message

Joe Weisblatt

unread,
Jan 31, 2016, 11:33:29 AM1/31/16
to Couchbase
I'd like to replace document content without affecting the TTL that was set when the document was created.
But not supplying a TTL on replace seems to reset it to 0 (never expire) and I don't see how to retrieve the existing TTL on get.
Is my only option to explicitly store the expiration myself in the document content and explicitly reset it when I replace?!
Doesn't sound very elegant, to say the least.

Thanks,
- joe w.
Reply all
Reply to author
Forward
0 new messages