withTtlSeconds

fun <T> withTtlSeconds(value: T, ttlSeconds: Long): CacheEntry<T>

Creates an entry with a TTL specified in seconds.