Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92773 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46352 invoked from network); 26 Apr 2016 09:38:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2016 09:38:44 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.65 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.65 mail-qg0-f65.google.com Received: from [209.85.192.65] ([209.85.192.65:36131] helo=mail-qg0-f65.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/AC-02401-3273F175 for ; Tue, 26 Apr 2016 05:38:43 -0400 Received: by mail-qg0-f65.google.com with SMTP id f74so557068qge.3 for ; Tue, 26 Apr 2016 02:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-transfer-encoding; bh=PhfxY3wjPm+vR63sDd2AEWsk6G28Bi1aBQ41bSwOFT4=; b=Uz6wRpGBTSGFoDHQzX3SqPrk0qk9ncTVlKNaxoORJrwX6OBjPSioZdZGqlQKg5324b LQ258VYBqUNxdLv5nwviR5DIIE8wDgDsIjQq58eCdhP5Cbun/0gi9Li7UmQ14PWzEr7K Ucm8utv1ZCrLKetz3AcAFbN7n45z+TrvgwBk2S068FU8MshmYI+VBR3XnrFvSPCzn8kj ArCPPm2ab6WQknVKooNCHFeBN7D4kpl6s5q/Aw4maxLGzfTGXSK1udSh8QRtoXGLN/YX wk76++alScH0IiZ4IQlsVVctCCNDk3mBEwg4fU9GbDV740JK3b78aIs+6cJ2vq8KejNt awKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=PhfxY3wjPm+vR63sDd2AEWsk6G28Bi1aBQ41bSwOFT4=; b=SqyYPz609/V3lW/iDhMkBz51FBihyM/u2XnyLle8/XAtGMm/aMDLgP7DG01JImPqBi KgEk57uvfUTHbk2i8savWq2cMZ1OKxnY77ndeAgo5Ti9W8F72IuIpUpIpI/PjBPiqpm0 SutiEWWX+73kpHttCsSBw+J7sD7xxipqghIKeNUlLfSdRBN3xae843BK7E9uVesQ0iGA ha8H+jMJhFDJEUvUXyh50qHTeYzhoCJFzAderL9PsiQ5s0QmfE98phTXbEXGgT3wwV0p pUssljo9bKchVIninY4FF3bnRj8DGTF2xt81VhakQpkJwANevhAdBI30wP0pP2h56wGk Eq0Q== X-Gm-Message-State: AOPr4FW2dvJUgOSq41jVgx30zSwG2GpcCMriHEA/McnklW+SiSTlOUlGqU9XyZv/bQER/8vFXwyt2Rq8KHuwbw== X-Received: by 10.140.176.205 with SMTP id w196mr1251735qhw.76.1461663520562; Tue, 26 Apr 2016 02:38:40 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.140.27.133 with HTTP; Tue, 26 Apr 2016 02:38:01 -0700 (PDT) In-Reply-To: <59412f65-4d7d-bcd3-6c9b-400dbbb07cdc@fedoraproject.org> References: <59412f65-4d7d-bcd3-6c9b-400dbbb07cdc@fedoraproject.org> Date: Tue, 26 Apr 2016 18:38:01 +0900 X-Google-Sender-Auth: 8wHhSd2WkfOgklErvrMKR3FCrSI Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Tue, Apr 26, 2016 at 4:44 PM, Remi Collet wrote= : > Le 25/04/2016 =C3=A0 16:09, S.A.N a =C3=A9crit : >> In userland lacks the ability to store data in the shared memory >> modules, do not use pecl modules, it would be very nice to have a >> function: >> >> opcache_get($key); >> opcache_set($key, $value); > > Opcache is an opcode cache. > > A user data cache is something really different. > > We learn from the past, having both in the same extension (APC) was an > mistake. > > So I really think, this doesn't have to be added in opache. > > And various extensions already exist (apcu, yac, memcache(d), redis...) > each for different needs. They are different thing. That said Are we going to have race condition free shared memory API by default? If yes, I'll use it for mm save handler (session save handler that uses shared memory) storage. Mm save handler does not compile with ZTS currently. Mm save handler would be nice for small web sites. It could be default save handler and many apps/sites will have performance boost. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net