ofSeconds

fun ofSeconds(seconds: Long): Expiry

The document will expire after the given number of seconds. Shorthand for Expiry.of(x.seconds)

Throws