use Persistent
fun <T> usePersistent(key: String, defaultValue: T, forceUseMemory: Boolean = false): PersistentHolder<T>
Use persistent
Return
Parameters
key
persistence key
default Value
persistent default values
force Use Memory
whether to force the use of memory for persistence
T