$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 allclose 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:
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