Is document expiration supported in Couchbase Lite .NET?

.net

#1

I am trying to expire a document with little success. If I set the ExpireAfter property on the document, I do indeed get a database change that indicates the document has been expired (and also deleted).

However, if I fetch that same document from the database after this happens, it is returned with my original revision. Am I missing something?


#2

After the Expiration please open the couchbase lite sqllite file and see if the document is expired or not. If you delete the database and re sync the data the document will come from server as expiry will not delete the document from server. To do so you need to mention expiry in the sync function if you are using sync gateway 2.0+