coroutineScope

abstract fun coroutineScope(coroutineScope: CoroutineScope): MemoryCacheManagerBuilder<K, V>

It is important that the provided coroutineScope live as long as the MemoryCache is in use. Once the coroutineScope is cancelled no further changes to the Cache will be saved to the SnapshotPersistentCache.

Parameters

coroutineScope

scope to use when periodically updating the SnapshotPersistentCache.