usePersistent

fun <T> usePersistent(key: String, defaultValue: T, forceUseMemory: Boolean = false): PersistentHookReturn<T>

Use persistent

Return

Parameters

key

persistence key

defaultValue

persistent default values

forceUseMemory

whether to force the use of memory for persistence

T