INNER CODE UNIT · Kotlin
putStringList
NexAlloy/NexAlloy · app/src/main/java/io/github/nexalloy/PatchExecutor.kt:126
override fun putStringList(key: String, value: List<String>) {
map.put(key, value.joinToString("|"))
}
override fun remove(key: String) {
map.remove(key)
}
fun saveCache() {
val edit = pref.edit()
edit.clear()
map.forEach { (k, v) ->
edit.putString(k, v)
}
edit.commit()
}
}