PersistentObjects
gives all persistent objects in all locations in $PersistencePath.
PersistentObjects[patt]
gives all persistent objects whose names match the string pattern patt.
PersistentObjects[patt,loc]
gives all matching persistent objects in persistence location loc.
PersistentObjects[patt,{loc1,…}]
gives all matching persistent objects in all the loci.
Details
- In PersistentObjects[patt,loc], possible forms for the persistence location loc include:
-
PersistenceLocation["type"] "Local", "Cloud", "FrontEndSession", etc. locations "type" equivalent to PersistenceLocation["type"] PersistenceLocation["type","base"] location with a particular base (directory etc.) "type""base" equivalent to PersistenceLocation["type","base"]
Examples
open allclose allScope (1)
Create a number of persistent values at different locations:
Find all persistent objects on $PersistencePath whose name starts with "a":
Find all persistent objects at the "KernelSession" location:
Text
Wolfram Research (2017), PersistentObjects, Wolfram Language function, https://reference.wolfram.com/language/ref/PersistentObjects.html (updated 2019).
CMS
Wolfram Language. 2017. "PersistentObjects." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/PersistentObjects.html.
APA
Wolfram Language. (2017). PersistentObjects. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PersistentObjects.html