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

ttlAt

the expiration timestamp in milliseconds since epoch

Type Parameters

V

the type of the value

Samples