deleteStale

fun deleteStale(writeInstant: ERROR CLASS: Symbol not found for Instant?? = Clock.System.now(), readInstant: ERROR CLASS: Symbol not found for Instant?? = Clock.System.now()): ERROR CLASS: Unresolved name: transaction(source)

Unlike deleteExpired, this will clean up rows that have not been touched (read/written) before the passed in time.

For example, you want to clean up rows that have not been read or written to in the last 24 hours. You would call this function with Clock.System.now().minus(1.days). This is not the same as deleteExpired which is based on the expires_at field.

Parameters

writeInstant

if set, will delete rows that have not been written to before this time.

readInstant

if set, will delete rows that have not been read before this time.

See also