I was having a scenario where on every request i had to fetch the data from database. SO i thought of using APC to cache the variable. But later found out that APC was no longer the choice for newer versions of PHP. So i checked out memcahced and APCu. Memcached is not the choice according to this. And i'm not sure for how long APCu will be supported by the developer community because i don't want to change my code once it it deployed.
Opcache is what replaced APC but it does not provide any way to cache variables. I'm confused. A little help would be appreciated.
Thanks in advance.