Re: Sharing hashes between processes

From: Date: Thu, 12 Jul 2001 18:48:18 +0000
Subject: Re: Sharing hashes between processes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59862@lists.php.net to get a copy of this message
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

« previous php.dev (#59862) next »