Setting - TTL , Expiration & Expiry in Eventing


#1

I see that there is a expiry setting in github.

How do I set a TTL on a doc during a write in Eventing ?

bucket1[meta.id] = {"some":"data"}

also is there a touch() to move a TTL on a doc?


#2

As of now, you cannot update meta or xattrs from inside the Function. Its in the roadmap.

cc @Siri


#3

The ability to set expiry is tracked by https://issues.couchbase.com/browse/MB-27267. In addition, it will also require the ability to modify the document that generated the mutation (and suppress the resulting recursion) and this is tracked by https://issues.couchbase.com/browse/MB-27268. We hope to fix both of them in the very near future.

Thank you.