put

abstract fun <T> put(id: SubscriptionId<T>, data: T, dataUpdatedAt: Long = epoch(), ttl: Duration = Duration.INFINITE)

Puts the subscription data into the cache.

Parameters

id

Unique identifier for the subscription.

data

Data to store.

dataUpdatedAt

Timestamp when the data was updated. Default is the current epoch time.

ttl

Time to live for the data. Default is Duration.INFINITE