Using SDK 2.4.3, we tried to set a ttl in a JSON Document of couchbase. We tried with 1minute (60 sec).Below sample code -
JsonDocument jdoc = JsonDocument.create (“XYZ”,60,content);
JsonDocument cbNotification = bucket.upsert(jdoc);
I came to know that rather than directly removing doc from CouchBase on expiry of TTL, CB waits for getting searched again, which will trigger the deletion upon expiration. I tried multiple time and checked but its not happening. Am I missing something?
Please help and thanks in advance.