Re: Singletons

John Dunlap <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC5eUSsBk=t89UbwAW2fz0WKiAU5cNzRjtMEuOrg+zxpgVHM9A@mail.gmail.com>
Thanks.

On Tue, Mar 10, 2015 at 12:23 PM, Perrin Harkins <[email protected]> wrote:

> Yes, that code just uses an ordinary global variable to store the
> instance, and those survive between requests. Keep in mind there is no
> magic here to share the instance between processes, so you'll have a
> different one in every process.
>
> - Perrin
>
> On Mon, Mar 9, 2015 at 5:25 PM, John Dunlap <[email protected]> wrote:
>
>>
>> For my own clarification, will classes which extend Class::Singleton
>> survive from one request to the next?
>>
>>
>> --
>> John Dunlap
>> *CTO | Lariat *
>>
>> *Direct:*
>> *[email protected] <[email protected]>*
>>
>> *Customer Service:*
>> 877.268.6667
>> [email protected]
>>
>
>


-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*[email protected] <[email protected]>*

*Customer Service:*
877.268.6667
[email protected]
100x60.png (image/png, 2.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.