$PersistenceBase
gives the default persistence location at which to store new values assigned to PersistentSymbol objects.
Details
- The value of $PersistenceBase is a persistence location.
- A persistence location is given as PersistenceLocation["type"] or "type".
- The initial setting of $PersistenceBase is PersistenceLocation["Local"].
- PersistentSymbol["name"]=value is equivalent to PersistentSymbol["name",$PersistenceBase]=value.
Examples
open allclose allBasic Examples (1)
Scope (1)
Specify a persistence location using its short name:
Specify a persistence location using PersistenceLocation:
Specify an alternate local location by giving the base directory as second argument:
Properties & Relations (1)
The default location of a new persistent object is given by $PersistenceBase:
Text
Wolfram Research (2017), $PersistenceBase, Wolfram Language function, https://reference.wolfram.com/language/ref/$PersistenceBase.html.
CMS
Wolfram Language. 2017. "$PersistenceBase." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$PersistenceBase.html.
APA
Wolfram Language. (2017). $PersistenceBase. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$PersistenceBase.html