kernl.data.repo.associativecache.AssociativeMemoryCacheLiveRepository.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kernl.Runtime Show documentation
Show all versions of Kernl.Runtime Show documentation
Kernl: A Kotlin Symbol Processing (KSP) library for automatic repository generation.
package io.github.mattshoe.shoebox.kernl.data.repo.associativecache
import io.github.mattshoe.shoebox.kernl.data.DataResult
import kotlinx.coroutines.flow.Flow
interface AssociativeMemoryCacheLiveRepository {
fun stream(params: TParams, forceFetch: Boolean = false): Flow>
fun latestValue(params: TParams): DataResult?
suspend fun refresh(params: TParams)
suspend fun invalidate(params: TParams)
suspend fun invalidateAll()
}