CoroutineCache

constructor(name: String, store: S, cacheScope: CoroutineScope, expireDuration: Duration = 1.minutes)

Parameters

name

The name is just used for logging.

cacheScope

A long living CoroutineScope to spawn coroutines, which remove entries from cache when not used anymore.

expireDuration

Duration to wait until entries from cache are when not used anymore.