Companion

object Companion

Properties

Link copied to clipboard
const val TTL_FOREVER: Long = 148204944000000

A special timestamp representing permanent values that never expire. Corresponds to UTC: 6666-06-06 00:00:00 (far future date). Value: 148204944000000 milliseconds since Unix epoch

Functions

Link copied to clipboard
fun isForever(ttlAt: Long): Boolean

Checks if a given ttlAt timestamp represents a permanent (forever) value.

Link copied to clipboard

Converts a value to a permanent PreparedValue that never expires.

Link copied to clipboard
fun <V> V.toTtlAt(ttlAt: Long): PreparedValue<V>

Converts a value to a PreparedValue with a specific expiration timestamp.