DefaultPreparedValue

data class DefaultPreparedValue<V>(val value: V, val ttlAt: Long = TTL_FOREVER) : PreparedValue<V>

Default implementation of PreparedValue that wraps a value with TTL information. This class provides a simple data structure for storing prepared values with optional expiration timestamps.

Type Parameters

V

the type of the prepared value

Constructors

Link copied to clipboard
constructor(value: V, ttlAt: Long = TTL_FOREVER)

Properties

Link copied to clipboard
open override val ttlAt: Long

the expiration timestamp in milliseconds since epoch (defaults to permanent)

Link copied to clipboard
open override val value: V

the actual value being prepared