Functions

Link copied to clipboard
abstract suspend fun clear()
Link copied to clipboard
abstract suspend fun deleteBoolean(key: String)
Link copied to clipboard
abstract suspend fun deleteByteArray(key: String)
Link copied to clipboard
abstract suspend fun deleteFloat(key: String)
Link copied to clipboard
abstract suspend fun deleteInt(key: String)
Link copied to clipboard
abstract suspend fun deleteLong(key: String)
Link copied to clipboard
inline suspend fun <T : Any> KeyValueStorage.deleteSerializable(key: String)
Link copied to clipboard
abstract suspend fun deleteString(key: String)
Link copied to clipboard
abstract suspend fun getBoolean(key: String, default: Boolean): Boolean
Link copied to clipboard
abstract suspend fun getByteArray(key: String, default: ByteArray): ByteArray
Link copied to clipboard
abstract suspend fun getFloat(key: String, default: Float): Float
Link copied to clipboard
abstract suspend fun getInt(key: String, default: Int): Int
Link copied to clipboard
abstract suspend fun getLong(key: String, default: Long): Long
Link copied to clipboard
inline suspend fun <T : Any> KeyValueStorage.getSerializable(key: String): T?
inline suspend fun <T : Any> KeyValueStorage.getSerializable(key: String, default: T): T
Link copied to clipboard
inline suspend fun <T : Any> KeyValueStorage.getSerializableList(key: String): List<T>
Link copied to clipboard
abstract suspend fun getString(key: String, default: String): String
Link copied to clipboard
abstract suspend fun putBoolean(key: String, value: Boolean)
Link copied to clipboard
abstract suspend fun putByteArray(key: String, value: ByteArray)
Link copied to clipboard
abstract suspend fun putFloat(key: String, value: Float)
Link copied to clipboard
abstract suspend fun putInt(key: String, value: Int)
Link copied to clipboard
abstract suspend fun putLong(key: String, value: Long)
Link copied to clipboard
inline suspend fun <T : Any> KeyValueStorage.putSerializable(key: String, value: T)
Link copied to clipboard
abstract suspend fun putString(key: String, value: String)