Closed xxfast closed 1 year ago
Sometimes we want to be able to read the cached value from the store synchronously.
For example, on Ktor's default request as requested in this feature
interface Database { suspend fun readUsername(): String? val cachedUsername: String? } defaultRequest { database.readUsername()?.let { header("X-User-ID", it) } // wont compile database.cachedUsername?.let { header("X-User-ID", it) } }
Added in 0.3.0
Sometimes we want to be able to read the cached value from the store synchronously.
For example, on Ktor's default request as requested in this feature