Hello Wez,

On Thu, 12 Jul 2001, Wez Furlong wrote:

> Hey,
>
> Suppose that I wanted to make a hash persistent so that it's contents were
> shared between processes.  Does the persistence mechanism keep a single copy
> and protect access to it using semaphores, or is it more like the mySQL
> pconnect way where a currently idle connection is used instead?

AFAIK, it's like the MySQL pconnect way. There is no way to share data
between processes (only with shared memory or diskstorage).

>
> What I have in mind is a file-contents cache in order to speed up the
> performance of a templating system.  Can I use a (true) global hash table in
> my extension and do everything via the persistent version of emalloc, or do I
> have to consider something else?

You might have a look at SRM (www.vl-srm.net) which addresses this kind of
problems. At this moment we are at the point of release the first beta of
it.

regards,
Derick


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to