RE: [coldbox:17587] [coldbox 3.5.3] cachebox monitor debug pane

Ahh-- of course. I didn’t even notice that the OP was talking about singletons. Yep, WireBox will only use CacheBox if you are actually persisting the object in a cache.

map(“GreenTea”).to(“model.Tea”).inCacheBox(timeout=20,provider=“ehCache”);

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Brad,

It’s not important that I see the singletons in cache. What’s important is to verify that my model is actually caching! :slight_smile:

How can I see the cache store for singletons?

Aaron,

WireBox can retrieve it for you

wirebox.getScope(“SINGLETON”)

Dump the object and you will see the methods to interact with the singleton scope.

Also, you can listen to the debugger interception points: afterDebuggerPanel and beforeDebuggerPanel and actually send your own panel to the debugger. So you can build a singleton viewer if needed.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano