Unfortunately, only via different positive numbers to remain compatible with the original truthy return values.
System-info: Ubuntu 20.04.6 LTS, x86_64
Platform-info: Vim 9.1.1401
These still are limited to numbers and strings (as of Vim 9.1.1401), so List and Dict variables need to be serialized as strings.
System-info: Ubuntu 20.04.6 LTS, x86_64
Platform-info: Vim 9.1.1401
We'll need this elsewhere soon, and it also fixes the separate check in ingo#plugin#persistence#Load().
System-info: Ubuntu 20.04.6 LTS, x86_64
Platform-info: Vim 9.1.1401
Since there's both viminfo and session persistence now, both of which can be configured independently, this depends on the name of variable.
System-info: Ubuntu 20.04.6 LTS, x86_64
Platform-info: Vim 9.1.1401
This will persist global variables that start with an uppercase letter and contain at least one lowercase letter in a Vim session created by :mksession.
It's not as encompassing as the viminfo persistence, but good enough to be counted.
System-info: Ubuntu 20.04.6 LTS, x86_64
Platform-info: Vim 9.1.1401
These convenience variants of ingo#plugin#persistence#Store() make adding or removing items from a List or Dict easier (especially in light of the compatibility serialization). It's common that plugins configure a List or Set of values.