MinimalDeleteByRoomIdRepositoryCoroutineCache

class MinimalDeleteByRoomIdRepositoryCoroutineCache<K, V>(repository: MinimalDeleteByRoomIdRepository<K, V>, tm: TransactionManager, cacheScope: CoroutineScope, expireDuration: Duration = 1.minutes, keyMapper: (K) -> RoomId) : MinimalRepositoryCoroutineCache<K, V>

Constructors

constructor(repository: MinimalDeleteByRoomIdRepository<K, V>, tm: TransactionManager, cacheScope: CoroutineScope, expireDuration: Duration = 1.minutes, keyMapper: (K) -> RoomId)

Properties

Link copied to clipboard
val values: SharedFlow<Map<K, StateFlow<V?>>>

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun clear()
Link copied to clipboard
suspend fun deleteAll()
Link copied to clipboard
suspend fun deleteByRoomId(roomId: RoomId)
Link copied to clipboard
fun read(key: K): Flow<V?>
Link copied to clipboard
suspend fun write(key: K, value: V?, persistEnabled: Boolean = true, onPersist: (newValue: V?) -> Unit = {})
suspend fun write(key: K, persistEnabled: Boolean = true, onPersist: (newValue: V?) -> Unit = {}, updater: suspend (oldValue: V?) -> V?)