Document Expiry time

Is there any way to get the expiry time for a document? The get call always returns a document with “0” expiry.

I need the value the expiry time for business functionality. If its not returned from the server, I have to store it in the document, and cannot effectively use getAndTouch when I just want to update the expiry.

Any ideas?

Hi,

the metadata of the document are not sent back when using the K/V protocol. You will have to create a view to access those Data.