gives the default list of persistence locations at which to look for values assigned to PersistentSymbol objects.


$PersistencePath
gives the default list of persistence locations at which to look for values assigned to PersistentSymbol objects.
Details

- The value of $PersistencePath is a list of persistence locations.
- A persistence location is given as PersistenceLocation["type"] or "type".
- The initial setting of $PersistencePath is typically {"KernelSession","FrontEndSession","Local","LocalShared","Installation"}.
- PersistentSymbol["name"] is equivalent to PersistentSymbol["name",$PersistencePath].
Examples
open all close allBasic Examples (1)
Properties & Relations (1)
Create a complement of persistent symbols with key "v" at various locations:
Persistent values are by default searched on all locations given in $PersistencePath:
The first value found is returned:
With MergingFunction->Identity, all values found are returned in a list:
Related Guides
Related Workflows
- Add the Cloud to the Persistence Search Path
History
Text
Wolfram Research (2017), $PersistencePath, Wolfram Language function, https://reference.wolfram.com/language/ref/$PersistencePath.html.
CMS
Wolfram Language. 2017. "$PersistencePath." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$PersistencePath.html.
APA
Wolfram Language. (2017). $PersistencePath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$PersistencePath.html
BibTeX
@misc{reference.wolfram_2025_$persistencepath, author="Wolfram Research", title="{$PersistencePath}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$PersistencePath.html}", note=[Accessed: 09-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$persistencepath, organization={Wolfram Research}, title={$PersistencePath}, year={2017}, url={https://reference.wolfram.com/language/ref/$PersistencePath.html}, note=[Accessed: 09-August-2025]}