Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25901 invoked from network); 26 Apr 2016 07:16:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2016 07:16:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.174 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.174 mail-yw0-f174.google.com Received: from [209.85.161.174] ([209.85.161.174:35673] helo=mail-yw0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/A8-02401-0D51F175 for ; Tue, 26 Apr 2016 03:16:34 -0400 Received: by mail-yw0-f174.google.com with SMTP id g133so5326601ywb.2 for ; Tue, 26 Apr 2016 00:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=1htsW6AWN3ef76+lauUv/GqYF3z8A1aeCy7/M4bich4=; b=uvhh9jkx9JTeyrPKwUmhJeqapXMEAfQurOYjNrQ2SMHS49CcnHOmn1DlRPkCDtn5r1 YPOW/SOoRxknCXJWEHckNN6SE2qITPzo/4Dt1E4uG6GOuYWvR9P3VMsVjbJuTon3JFKf zLKUPbj9ObHTGWzBEVgime1/WskgI8LWLLgrh509a6J/3tu/Ah5BwExSxixTtFcrnmXj RywssecNruHk40+bUW37uyVaIuLpipmPOKWTz1ZOw+QUMMNmZifGYoD0iS0w45SFEcZr BF5Dcl4h55IVrNhXbDkbv89OGf1Ug/RLC1x1W426/VLuMVUs/Q0AqQy0l/o0PKUoQDi9 /fcw== 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:date :message-id:subject:from:to:cc; bh=1htsW6AWN3ef76+lauUv/GqYF3z8A1aeCy7/M4bich4=; b=fhFABu1zfFNfLXCl/UBQKIfeA8WWXWB18P1CA2xyfttQoL7FsGzlJS0tq151Yh23KF ESdFkLf6so0vn06jibu1d7KQQVqUHqGfbdQf8R4YH6mNQZGSoABAEF5fEDeDAjeXrHVG h90+sbRHbATHrQuJBOpwdNTfUc1VQIo4ll5V7gckm57ztTPfH0X06F8bLmzI7NIAR3dv scU6YLTU3x/VXFnMkXDRtq/lpiAge2EyQ+GFlAXGY6AmzRwji5Zn03/TGzDb4TQfR85y u2YIXynKh85Hwa8KAG+8PlXJ3jLY/4Ng08hDdn43twdMcpTeN7Yc6WEF3oMHgI7WAqfW thuQ== X-Gm-Message-State: AOPr4FV1C12Lg5Uljs9MAag+xQ9b5X1IAqVVA7fyBKKcZEiKV5xBPA0g+DKzeI9qh0xdeGG56tOrRqTiGkcUxA== MIME-Version: 1.0 X-Received: by 10.129.44.139 with SMTP id s133mr594176yws.182.1461654990501; Tue, 26 Apr 2016 00:16:30 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Tue, 26 Apr 2016 00:16:30 -0700 (PDT) X-Originating-IP: [165.120.174.34] In-Reply-To: References: Date: Tue, 26 Apr 2016 08:16:30 +0100 Message-ID: To: Xinchen Hui Cc: "S.A.N" , internals Content-Type: multipart/alternative; boundary=001a1141e82a7e6b5105315e1257 Subject: Re: [PHP-DEV] Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? From: pthreads@pthreads.org (Joe Watkins) --001a1141e82a7e6b5105315e1257 Content-Type: text/plain; charset=UTF-8 Morning, To answer the question; No, there is no plan to add that. The allocator in opcache is simply not suitable for that kind of use. We could make it suitable, but the optimal allocator for a user cache, and the optimal allocator for a code cache, are different things. IMO they belong separately. Cheers Joe On Tue, Apr 26, 2016 at 4:17 AM, Xinchen Hui wrote: > Hey: > > > > On Mon, Apr 25, 2016 at 10:09 PM, S.A.N wrote: > > > 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? > > > you could try https://github.com/laruence/yac > > it's a "A fast shared memory user data cache for PHP " > > thanks > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > Xinchen Hui > @Laruence > http://www.laruence.com/ > --001a1141e82a7e6b5105315e1257--