toTtlAt

fun <V> V.toTtlAt(ttlAt: Long): PreparedValue<V>

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

Return

a PreparedValue with the specified TTL

Parameters

V

the type of the value

ttlAt

the expiration timestamp in milliseconds since epoch

Samples