Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92744 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69661 invoked from network); 25 Apr 2016 17:51:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 17:51:40 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:35409] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/50-02401-A295E175 for ; Mon, 25 Apr 2016 13:51:39 -0400 Received: by mail-lb0-f170.google.com with SMTP id os9so82370871lbb.2 for ; Mon, 25 Apr 2016 10:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YsHvlhi7bdstyTHpLg7btF/1Vc9BI7IWA4UV/uW6dfc=; b=XsKwqMTh5G3JUmAY+B2j09zaZ2VQtoGF9C2MVQFZw4U2ct9mi2KFExhQ02ITTe3vzp Pb2mxt63geJfA77eHPSlcsQ/29ijRgB5jPqJgAfGk1FPyDAE/DSv5JV0un+KxLTPfv1u v1mWPjWuKZt2fEQTmXCFdp4u881QL/LOnknaY7fzrgS1cY2Tdh3VLSLe8+6SIpzBDKPL 2Yy26i3UCrC3U/Rbyl+kcU9PkyGIgJTDXaefRYEGSc/EIo5NcCCcf8bLmUfsaoaTzm22 n3h/ZDvb4nnkoBb9kvV+9euTNZ2UPWqI0w+4Gq7AaAMrPYZ4xwxPSMwj8k0wY1znWJk9 sPQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YsHvlhi7bdstyTHpLg7btF/1Vc9BI7IWA4UV/uW6dfc=; b=dB7uSdMeAlPs/223zB28ov1ReC44fnAP7mIqY1f+cd9xfuNLZL38quIpnzucfbaLbO a8mhT1LJ8hAeTdp9loLXu1psXuUW/kfd+QYIb5AKo6w0VVE/2Hlmd57Nh+oauw1c575S UmuIKNqA1+Z9hlm3qsubHdt06m+yH97ZVBgPU1at/rZ/mtMLE1Rvm6kRVw4RMmkUoCwI pDNlDDcr40B8IRgdBcqz7++R1EnpmwV/PbMFfzpmMoSvh00UrRQzJ0TYQ9yCp8+MNL/G UpcMof8oFMWX0otllVR07izlBUEHz/FtovvjlssXk2mBKGVx2MRp69LdsmuX/ZHG1l6V O6yQ== X-Gm-Message-State: AOPr4FVpkibqqQFuXfDlA/bNagiqgivdYXO+QcA+0oLc7EiOQlptBnXzsWdJLlluWoCdSWQPJDtYyTL1ZSxRpQ== X-Received: by 10.112.201.105 with SMTP id jz9mr9920273lbc.6.1461606695706; Mon, 25 Apr 2016 10:51:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.126.67 with HTTP; Mon, 25 Apr 2016 10:51:15 -0700 (PDT) In-Reply-To: References: <571E2B75.6000909@gmail.com> Date: Mon, 25 Apr 2016 19:51:15 +0200 Message-ID: To: "S.A.N" Cc: Rowan Collins , internals Content-Type: multipart/alternative; boundary=001a11c372dce625a3053152d3d5 Subject: Re: [PHP-DEV] Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? From: ocramius@gmail.com (Marco Pivetta) --001a11c372dce625a3053152d3d5 Content-Type: text/plain; charset=UTF-8 This seems to mix the concerns of an opcode cache (saves opcodes) with a user-cache (saves mixed data). You should just use APCu for that. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 25 April 2016 at 19:49, S.A.N wrote: > 2016-04-25 17:36 GMT+03:00 Rowan Collins : > > S.A.N wrote on 25/04/2016 15:09: > >> > >> 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); > >> > >> Is planned in PHP 7.1? > >> > > > > This was identified as a difference between APC and OpCache when the > latter > > was added to core several releases ago, and that's exactly why APCu > exists: > > http://php.net/apcu > > > > There's not really a huge connection between opcode caching and > optimization > > (OpCache) and shared memory data caches (APCu, memcached, etc), so I > don't > > think there's any particular logic to calling such functions "opcache". > > > > So I guess the question becomes: "should APCu be made part of core?" I'm > not > > aware of anyone having proposed that, so don't know if there are strong > > feelings for or against such a thing. > > Yes, there are a lot of libraries to work with shared memory, but why > should they if there OPcache in core PHP? > Functions get, set key values will be useful and in demand. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c372dce625a3053152d3d5--