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 <[email protected]> wrote:
> Hey:
>
>
>
> On Mon, Apr 25, 2016 at 10:09 PM, S.A.N <[email protected]> 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/
>