Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23115 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38947 invoked by uid 1010); 3 May 2006 09:05:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38931 invoked from network); 3 May 2006 09:05:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 May 2006 09:05:46 -0000 X-PHP-List-Original-Sender: stuttle@gmail.com X-Host-Fingerprint: 87.117.193.62 uk1.moxiemon.net Received: from ([87.117.193.62:59338] helo=horatio.sharedserver.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A9/B3-04906-A6278544 for ; Wed, 03 May 2006 05:05:46 -0400 Received: from [10.10.206.229] (unknown [194.131.158.1]) by horatio.sharedserver.net (Postfix) with ESMTP id 16F189C7442 for ; Wed, 3 May 2006 10:00:09 +0100 (BST) Message-ID: <44587268.9020909@gmail.com> Date: Wed, 03 May 2006 10:05:44 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Shared hashtable From: stuttle@gmail.com (Stut) Hi all, I'm being asked about the possibility of creating an extension that will cache some data from a MySQL DB in-memory. I've been reading various online resources regarding building extensions and cannot find an answer to the following question... Is there a way to create a hashtable in the extension which will be available to all of the Apache children without resorting to shared memory? It's important that only one instance of the data exists for two reasons... 1) It's a fairly large amount of data and 2) it will change as the application runs. I've created a small test extension using MODULE_GLOBALS the results of which suggest that these variables are per process. I'm just looking for some confirmation that shared memory is the way to go before I jump down that particular black hole. TIA. -Stut