Author Posts

April 6, 2017 at 6:35 pm

I have a few functions which call each other recursively. Some of these functions rely on an object in the session which provides caching functionality.

With binary cmdlets, we have SessionState.PSVariable.{Set|GetValue} etc. With a text based module, what is the best approach?

April 6, 2017 at 6:39 pm

A module-level variable.

April 6, 2017 at 11:25 pm

Thanks guys,
So what does PrivateData (with all the limitations) actually provide over and above simple, non exported variables in the module file?