KeyValueStore

internal interface KeyValueStore(source)

Defines the KeyValueStore contract for the SDAI data layer.

Author

Dmitriy Moroz

Inheritors

Functions

Link copied to clipboard
abstract fun getBoolean(key: String, default: Boolean = false): Boolean

Loads SDAI data through getBoolean.

Link copied to clipboard
abstract fun getInt(key: String, default: Int = 0): Int

Loads SDAI data through getInt.

Link copied to clipboard
abstract fun getString(key: String, default: String = ""): String

Loads SDAI data through getString.

Link copied to clipboard
abstract fun putBoolean(key: String, value: Boolean)

Executes the putBoolean step in the SDAI data layer.

Link copied to clipboard
abstract fun putInt(key: String, value: Int)

Executes the putInt step in the SDAI data layer.

Link copied to clipboard
abstract fun putString(key: String, value: String)

Executes the putString step in the SDAI data layer.