PHP stores its session information on the file system of the host of the server establishing that session. In a multiple-host PHP environment, where load is unintelligently distributed amongst each host, PHP session variables are not available to each request (unless by chance the request is assigned to the same host — assume we have … Read more
I’m using PDO for connect to the database in a system where I want implement memcached.
I am trying to understand (and probably deploy) memcached in our env.
I’m running an app like 9gag where uers can upload and watch images and videos so same images and videos are requested up to 100 times per minute which puts a big workload on the SSD so storing last used media in RAM and serve it from there would be better.
It seems that PHP has two memcached libraries named memcache and memcached. What is the difference and how do you know which one to use? Is one outdated? It seems that memcached offers more methods so I would assume that means it has had the most development – but it also seems to require external C/C++ libraries so I’m not sure if I can install it.
I’ve pasted the example from php.net for using memcached in php and I’m getting:
I’m working with a couple of Web Servers behind a Load Balancer and I can enable Sticky Sessions to hold a user to the one specific Web Servers – this will work.
Does the memcached (not memcache) extension exist for Windows? I have looked through old answers and haven’t found anything.
I am doing a project on Laravel. I’m trying to make a simple system that uses cache focused on memcache. When I started studying, I checked Laravel site first and then I found that using the Memcached cache requires the Memcached PECL package to be installed.
php -v gives this