RE: [PEAR] Package for classes that wrap shared memory primitives
| From: | Mike Carter | Date: | Tue, 21 Jan 2003 09:29:20 +0000 |
| Subject: | RE: [PEAR] Package for classes that wrap shared memory primitives | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3379@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andrey Hristov [mailto:andrey@webgate.bg]
>
> Hello,
> 9 days ago I sent a message to this list with proposal for
> such package. I asked whether somone will PEAR-ify the code I
> had written. Today I did this (hope that it is by the PEAR's
> coding standards). The file is (shm.php) is attached. The
> code provides class wrappers for shm_var, semaphore, shm_var
> guarded with semaphore and implementation of a class that is
> useful for protecting a server from loading too much
> instances of a script. In fact the script is loaded but a
> shm_var guarded with semaphore is used to protect the server
> from running too many instances of this script. This class is
> useful for backend scripts that directly communicate with
> some frontend like Java applet(or application). However it
> may be useful in the traditional web enviroment. A test case
> is included in the file. Prerequisite is that php must be
> compiled with --enable-sysvshm and --enable-sysvsem. Please
> advice a name for this package. I cannot find appropriate
> category for it thus for now it is Shm.
Would be great if you could use your SystemV skills to write a sub-class of
the PEAR cache class to use the servers memory to cache things rather than a
file or dbase table. Is that possible though....?
Regards,
Mike C
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________