getString

abstract fun getString(key: String, defValue: String?): String?

根据 key 获取缓存的值,如果未获取到,则返回默认值 defValue

Parameters

key

defValue

默认值