Cache

class Cache(val context: Context, ioQueue: CoroutineContext = Dispatchers.IO.limitedParallelism(1), json: Json) : CoroutineScope(source)

Constructors

Link copied to clipboard
constructor(context: Context, ioQueue: CoroutineContext = Dispatchers.IO.limitedParallelism(1), json: Json)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun clean()
Link copied to clipboard
fun <T : Any> delete(storable: Storable<T>)
Link copied to clipboard
fun <T> read(storable: Storable<T>): T?
Link copied to clipboard
fun <T : Any> write(storable: Storable<T>, data: T)