ofSeconds

fun ofSeconds(seconds: Long): Expiry

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

Throws