putWithDefault

fun putWithDefault(key: String, value: String?, default: String? = null): String?

Put but if value is null or default, the entry is deleted.

Return

Old value before put.