Sean Coyne, Copyright 2014 and Beyond. All Rights Reserved.
Apache 2.0 License
A simple ColdFusion facade to abstract a shared scope (session, application, server, request). Useful in applications where you do not want to directly access the shared scope from services.
new ScopeFacade() with the name of the scope you want to abstract. You can also use subkeys of a scope, provided they are structs.
<cfscript> scopeFacade = new ScopeFacade("session"); // this would abstract the entire session scope scopeFacade = new ScopeFacade("session.userinfo"); // this would abstract only the "userinfo" key of the session scope; </cfscript>