[Catalyst] Store something in the stash at startup
Tomas Doran
bobtfish at bobtfish.net
Tue Aug 17 15:21:34 GMT 2010
On 17 Aug 2010, at 14:59, will at serensoft.com wrote:
> Is that the part you're referring to as application-lifetime?
No.
When you say:
use MyApp;
(or require MyApp) then the application is loaded, and all of it's
models, controllers and views are setup initially.
They persist for the lifetime of your perl interpreter. Any data those
objects contains will also persist for the lifetime of the perl
interpreter.
This is what I mean by 'application lifetime', and it's the default
for components in Catalyst.
Cheers
t0m
More information about the Catalyst
mailing list