getFloat

abstract fun getFloat(key: String, defValue: Float): Float

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

Parameters

key

defValue

默认值