# Persistence of data in global dictionary?

**URL:** <https://forum.inductiveautomation.com/t/persistence-of-data-in-global-dictionary/36237>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [July 1, 2020, 7:46am UTC](https://forum.inductiveautomation.com/t/persistence-of-data-in-global-dictionary/36237 "2020-07-01T07:46:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 1, 2020, 12:26pm UTC](https://forum.inductiveautomation.com/t/persistence-of-data-in-global-dictionary/36237/3 "2020-07-01T12:26:17Z")

</div>

It used to not be emptied. Which breaks a great deal of the code I use to manage lifetimes for asynchronous threads. Since IA seems to be oblivious about the significance of this, I created a special module (free) just for this purpose, announced here:

> [@system.util.getGlobals() not persisted across Designer Save](http://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869/14):
>
> Ok. New module “Life Cycle” w/ system.util.persistent(name) utility function. For v7.9: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl) For v8.0: [https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl](https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl) Test with a project script like this: # project script "Life" g = system.util.persistent('LifeTest') count = g.setdefault('editCount', -1) count += 1 g['editCount'] = count def editCount(): return count Print the return from Life.editCou…

---

_[View the full topic](https://forum.inductiveautomation.com/t/persistence-of-data-in-global-dictionary/36237)._
