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?