RE: [coldbox:16384] Re: Really resetting everything

The storage plugins allow for things like serializing and encryption (especially for client and cookie storage). They also provide a consistent exists(), get(), set() API for them. Most importantly, they keep you from breaking encapsulation by referencing scopes directly which is a must if you plan on doing any unit testing. For instance, it’s easier to provide a mock SessionStorage plugin which returns a preset value for a unit test than it is to require that the session scope exists and is populated like you expect in your testing framework.



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform: