This works adding a ttl of 10 minutes.
function(doc){
var currentDate = new Date();
var d = new Date(currentDate.getTime() + (10 * 60 * 1000));
expiry(d.toISOString())
channels(doc.channels)
}
This doesn’t work
function(doc){
expiry(600)
channels(doc.channels)
}