Laravel / Lumen: Failed to establish Memcached connection
I wanted to use caching in my project and thought I would be using Memcached. For this I have installed memcached.
When I output mine phpinfo();
I see the extension exists
However, when you want to use it with Cache::get()
, I get the following error:
Failed to establish Memcached connection.
I have the following values ββin my .env
MEMCACHED_HOST=127.0.0.1
MEMCACHED_PORT=11211
My php.ini has the following content for memcached
extension=memcached.so
What do I need to do to use memcached and connect successfully?
+3
source to share