How to set TTL for a document using the Go API client ? What is "exp int"?


#1

I can’t find a reference to TTL or expiry time anywhere in the documentation: https://godoc.org/github.com/couchbaselabs/go-couchbase

While we’re at it, what “exp int” argument usually used in so many methods, for an example the Add method: https://godoc.org/github.com/couchbaselabs/go-couchbase#Bucket.Add, what does it mean ? Also not documented.


#2

I am not the developer. AFAIK, exp is the expiry time in seconds.


#3

Thanks! So apparently no one watches over this questions, should I be using stackoverflow or something else ?