Re: Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1?
| From: | Joe Watkins | Date: | Tue, 26 Apr 2016 07:16:30 +0000 |
| Subject: | Re: Opcache::get($key), set($key, $value) to shared memory, is planned in PHP 7.1? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92762@lists.php.net to get a copy of this message | ||
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 <laruence@php.net> wrote:
> Hey:
>
>
>
> On Mon, Apr 25, 2016 at 10:09 PM, S.A.N <ua.san.alex@gmail.com> 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/
>