I have a couchbase key K which stores a JsonLongDocument V.
Whenever I see an event E at time T, I increment the V by 1 with an updated expiry of T+n(sec) using the following java client function :
bucket.counter(K, 1, 1, n)
I also occasionally have to get the value V using key K by calling the following java client function :
bucket.get(K, classOf[JsonLongDocument])
But whenever I'm calling simple 'get', the couchbase is changing the expiry of the document and setting it to 0 which means persist forever.
How can I still do the 'get' on my value without changing its expiry?